public class FutureWriteCallback extends FutureCallback implements WriteCallback
WriteCallback
to drive a Future
for the user.Callback.Completable, Callback.Completing, Callback.Nested
Invocable.InvocationType
Modifier and Type | Field and Description |
---|---|
private static Logger |
LOG |
SUCCEEDED
__nonBlocking
Constructor and Description |
---|
FutureWriteCallback() |
Modifier and Type | Method and Description |
---|---|
void |
writeFailed(java.lang.Throwable cause)
Callback invoked when the write fails.
|
void |
writeSuccess()
Callback invoked when the write completes.
|
cancel, failed, get, get, isCancelled, isDone, rethrow, succeeded, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getInvocationType, getInvocationType, invokeNonBlocking, isNonBlockingInvocation
private static final Logger LOG
public void writeFailed(java.lang.Throwable cause)
WriteCallback
Callback invoked when the write fails.
writeFailed
in interface WriteCallback
cause
- the reason for the write failurepublic void writeSuccess()
WriteCallback
Callback invoked when the write completes.
writeSuccess
in interface WriteCallback
WriteCallback.writeFailed(Throwable)