public class FutureWriteCallback extends FutureCallback implements WriteCallback
WriteCallback to drive a Future for the user.Callback.Completable, Callback.Completing, Callback.InvocableCallback, Callback.NestedInvocable.InvocationTypeSUCCEEDED__nonBlocking| Constructor and Description |
|---|
FutureWriteCallback() |
| Modifier and Type | Method and Description |
|---|---|
void |
writeFailed(Throwable cause)
Callback invoked when the write fails.
|
void |
writeSuccess()
Callback invoked when the write completes.
|
cancel, failed, get, get, isCancelled, isDone, rethrow, succeeded, toStringequals, getClass, hashCode, notify, notifyAll, wait, wait, waitcombine, from, from, from, from, from, fromcombine, getInvocationType, getInvocationType, invokeNonBlocking, isNonBlockingInvocationpublic void writeFailed(Throwable cause)
WriteCallbackCallback invoked when the write fails.
writeFailed in interface WriteCallbackcause - the reason for the write failurepublic void writeSuccess()
WriteCallbackCallback invoked when the write completes.
writeSuccess in interface WriteCallbackWriteCallback.writeFailed(Throwable)Copyright © 2010 - 2020 Adobe. All Rights Reserved