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()
Closes this stream and releases any system resources associated
with it.
|
void |
close(CompletionHandler<Closeable> completionHandler)
Closes this stream and releases any system resources associated
with it.
|
boolean |
removeCloseListener(CloseListener closeListener)
Remove the
CloseListener. |
GrizzlyFuture<Closeable> close()
Future, which could be checked in case, if close operation
will be run asynchronouslyvoid close(CompletionHandler<Closeable> completionHandler)
completionHandler - CompletionHandler to be called, when
the stream is closed.void addCloseListener(CloseListener closeListener)
CloseListener, which will be notified once the stream
will be closed.closeListener - CloseListener.boolean removeCloseListener(CloseListener closeListener)
CloseListener.closeListener - CloseListener.Copyright © 2013 Oracle Corporation. All Rights Reserved.