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, toString
public void writeFailed(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)
Copyright © 1995-2015 Webtide. All Rights Reserved.