Class FutureWriteCallback
- java.lang.Object
-
- org.eclipse.jetty.util.FutureCallback
-
- org.eclipse.jetty.websocket.common.io.FutureWriteCallback
-
- All Implemented Interfaces:
java.util.concurrent.Future<java.lang.Void>
,Callback
,Invocable
,WriteCallback
public class FutureWriteCallback extends FutureCallback implements WriteCallback
Allows events to aWriteCallback
to drive aFuture
for the user.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.Callback
Callback.Completable, Callback.Completing, Callback.Nested
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.thread.Invocable
Invocable.InvocationType
-
-
Field Summary
-
Fields inherited from class org.eclipse.jetty.util.FutureCallback
SUCCEEDED
-
Fields inherited from interface org.eclipse.jetty.util.thread.Invocable
__nonBlocking
-
-
Constructor Summary
Constructors Constructor Description FutureWriteCallback()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
writeFailed(java.lang.Throwable cause)
Callback invoked when the write fails.void
writeSuccess()
Callback invoked when the write completes.-
Methods inherited from class org.eclipse.jetty.util.FutureCallback
cancel, failed, get, get, isCancelled, isDone, rethrow, succeeded, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.jetty.util.thread.Invocable
getInvocationType
-
-
-
-
Method Detail
-
writeFailed
public void writeFailed(java.lang.Throwable cause)
Description copied from interface:WriteCallback
Callback invoked when the write fails.
- Specified by:
writeFailed
in interfaceWriteCallback
- Parameters:
cause
- the reason for the write failure
-
writeSuccess
public void writeSuccess()
Description copied from interface:WriteCallback
Callback invoked when the write completes.
- Specified by:
writeSuccess
in interfaceWriteCallback
- See Also:
WriteCallback.writeFailed(Throwable)
-
-