public static class BlockingWriteCallback.WriteBlocker extends Object implements WriteCallback, Callback, AutoCloseable
Callback.Completable, Callback.NestedInvocable.InvocationType__nonBlocking| Modifier | Constructor and Description |
|---|---|
protected |
WriteBlocker(SharedBlockingCallback.Blocker blocker) |
| Modifier and Type | Method and Description |
|---|---|
void |
block() |
void |
close() |
void |
failed(Throwable x) |
Invocable.InvocationType |
getInvocationType() |
void |
succeeded() |
void |
writeFailed(Throwable x) |
void |
writeSuccess() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitasPreferred, getInvocationType, invokeNonBlocking, invokePreferNonBlocking, invokePreferred, isNonBlockingInvocationprotected WriteBlocker(SharedBlockingCallback.Blocker blocker)
public Invocable.InvocationType getInvocationType()
getInvocationType in interface Invocablepublic 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–2017 Webtide. All rights reserved.