public class FutureWriteCallback extends FutureCallback implements WriteCallback
WriteCallback to drive a Future for the user.Callback.Adapter| 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, toStringpublic 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 © 1995-2015 Webtide. All Rights Reserved.