public static class BlockingWriteCallback.WriteBlocker extends Object implements WriteCallback, Callback.NonBlocking, AutoCloseable
Callback.Adapter, Callback.NonBlocking| Modifier | Constructor and Description |
|---|---|
protected |
WriteBlocker(SharedBlockingCallback.Blocker blocker) |
| Modifier and Type | Method and Description |
|---|---|
void |
block() |
void |
close() |
void |
failed(Throwable x) |
void |
succeeded() |
void |
writeFailed(Throwable x) |
void |
writeSuccess() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisNonBlockingprotected WriteBlocker(SharedBlockingCallback.Blocker blocker)
public void writeFailed(Throwable x)
writeFailed in interface WriteCallbackpublic void writeSuccess()
writeSuccess in interface WriteCallbackpublic void close()
close in interface AutoCloseablepublic void block()
throws IOException
IOExceptionCopyright © 1995-2015 Webtide. All Rights Reserved.