public interface Closeable
| Modifier and Type | Method and Description |
|---|---|
void |
addCloseListener(CloseListener closeListener)
Add the
CloseListener, which will be notified once the stream
will be closed. |
GrizzlyFuture<Closeable> |
close()
Gracefully (if supported by the implementation) closes this stream and
releases any system resources associated with it.
|
void |
close(CompletionHandler<Closeable> completionHandler)
Deprecated.
please use
close() with the following GrizzlyFuture.addCompletionHandler(org.glassfish.grizzly.CompletionHandler) call |
void |
closeSilently()
Gracefully (if supported by the implementation) closes this stream and
releases any system resources associated with it.
|
boolean |
removeCloseListener(CloseListener closeListener)
Remove the
CloseListener. |
GrizzlyFuture<Closeable> |
terminate()
Closes this stream and releases any system resources associated with it.
|
void |
terminateSilently()
Closes this stream and releases any system resources associated with it.
|
void terminateSilently()
GrizzlyFuture<Closeable> terminate()
Future, which could be checked in case, if close operation
will be run asynchronouslyvoid closeSilently()
GrizzlyFuture<Closeable> close()
Future, which could be checked in case, if close operation
will be run asynchronouslyvoid close(CompletionHandler<Closeable> completionHandler)
close() with the following GrizzlyFuture.addCompletionHandler(org.glassfish.grizzly.CompletionHandler) callcompletionHandler - CompletionHandler to be called, when
the stream is closedvoid addCloseListener(CloseListener closeListener)
CloseListener, which will be notified once the stream
will be closed.closeListener - CloseListener.boolean removeCloseListener(CloseListener closeListener)
CloseListener.closeListener - CloseListener.Copyright © 2014 Oracle Corporation. All Rights Reserved.