java.io.Closeable
| Modifier and Type | Method and Description |
|---|---|
| public void | addCloseListener(CloseListener<T extends Closeable, C extends ICloseType> closeListener)
Add the |
| public void | |
| public GrizzlyFuture | Returns: java., which could be checked in case, if close operation will be run
asynchronouslyGracefully (if supported by the implementation) closes this stream and releases any system resources associated with it. |
| public void | close(CompletionHandler<Closeable>
CompletionHandler to be called, when the stream is closed
Deprecated
please use
close() with the following
GrizzlyFuture#addCompletionHandler(org. call
Gracefully closes this stream and releases any system resources associated with it. |
| public GrizzlyFuture | |
| public void | closeSilently()
Gracefully (if supported by the implementation) closes this stream and releases any system resources associated with it. |
| public void | closeWithReason(IOException
reason why closed, this will be thrown by cause)isOpen() if called subsequentlyGracefully closes the Closeable and provides the reason description. |
| public boolean | Returns: true, if Closeable is open and ready, or false otherwise.Is Closeable open and ready. |
| public boolean | Returns: true if the listener was successfully removed, or false otherwise.Remove the |
| public GrizzlyFuture | Returns: java., which could be checked in case, if close operation will be run
asynchronouslyCloses this stream and releases any system resources associated with it. |
| public void | |
| public void | terminateWithReason(IOException
reason why terminated. This will be thrown is cause)isOpen() is called subsequentlyCloses the Closeable and provides the reason description. |
| addCloseListener | back to summary |
|---|---|
| public void addCloseListener(CloseListener<T extends Closeable, C extends ICloseType> closeListener) Add the
| |
| assertOpen | back to summary |
|---|---|
| public void assertOpen() throws IOException Checks if this Closeable is open and ready to be used. If this Closeable is closed then an IOException will be thrown
| |
| close | back to summary |
|---|---|
| public GrizzlyFuture Gracefully (if supported by the implementation) closes this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect.
| |
| close | back to summary |
|---|---|
| public void close(CompletionHandler<Closeable> completionHandler)
Deprecated please use Gracefully closes this stream and releases any system resources associated with it. This operation waits for all pending output data to be flushed before closing the stream. If the stream is already closed then invoking this method has no effect.
| |
| closeFuture | back to summary |
|---|---|
public GrizzlyFuture
| |
| closeSilently | back to summary |
|---|---|
| public void closeSilently() Gracefully (if supported by the implementation) closes this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect. Use this method, when no completion notification is needed. | |
| closeWithReason | back to summary |
|---|---|
| public void closeWithReason(IOException cause) Gracefully closes the Closeable and provides the reason description.
This method is similar to
| |
| isOpen | back to summary |
|---|---|
| public boolean isOpen() Is Closeable open and ready. Returns true, if the Closeable is open and ready, or false otherwise.
| |
| removeCloseListener | back to summary |
|---|---|
| public boolean removeCloseListener(CloseListener<T extends Closeable, C extends ICloseType> closeListener) Remove the
| |
| terminate | back to summary |
|---|---|
| public GrizzlyFuture Closes this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect.
| |
| terminateSilently | back to summary |
|---|---|
| public void terminateSilently() Closes this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect. Use this method, when no completion notification is needed. | |
| terminateWithReason | back to summary |
|---|---|
| public void terminateWithReason(IOException cause) Closes the Closeable and provides the reason description.
This method is similar to
| |