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
@Deprecated(since="2021-05-27") public class FutureWriteCallback extends FutureCallback implements WriteCallback
Deprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.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()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
writeFailed(java.lang.Throwable cause)
Deprecated.Callback invoked when the write fails.void
writeSuccess()
Deprecated.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
equals, 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)
Deprecated.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()
Deprecated.Description copied from interface:WriteCallback
Callback invoked when the write completes.
- Specified by:
writeSuccess
in interfaceWriteCallback
- See Also:
WriteCallback.writeFailed(Throwable)
-
-