public static class BlockingWriteCallback.WriteBlocker extends Object implements WriteCallback, Callback, AutoCloseable
Callback.Adapter| Modifier and Type | Method and Description |
|---|---|
void |
block() |
void |
close() |
void |
failed(Throwable x)
Callback invoked when the operation fails.
|
void |
succeeded()
Callback invoked when the operation completes.
|
void |
writeFailed(Throwable x)
Callback invoked when the write fails.
|
void |
writeSuccess()
Callback invoked when the write completes.
|
public void writeFailed(Throwable x)
WriteCallbackCallback invoked when the write fails.
writeFailed in interface WriteCallbackx - the reason for the write failurepublic void writeSuccess()
WriteCallbackCallback invoked when the write completes.
writeSuccess in interface WriteCallbackWriteCallback.writeFailed(Throwable)public void succeeded()
CallbackCallback invoked when the operation completes.
succeeded in interface CallbackCallback.failed(Throwable)public void failed(Throwable x)
CallbackCallback invoked when the operation fails.
public void close()
throws IOException
close in interface AutoCloseableIOExceptionpublic void block()
throws IOException
IOExceptionCopyright © 1995-2015 Webtide. All Rights Reserved.