Class AbstractHttpTransport.Writer
java.lang.Object
org.eclipse.jetty.util.IteratingCallback
org.cometd.server.http.AbstractHttpTransport.Writer
- All Implemented Interfaces:
Promise<Void>
,org.eclipse.jetty.util.Callback
,org.eclipse.jetty.util.thread.Invocable
- Enclosing class:
AbstractHttpTransport
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jetty.util.IteratingCallback
org.eclipse.jetty.util.IteratingCallback.Action
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.Callback
org.eclipse.jetty.util.Callback.Completable, org.eclipse.jetty.util.Callback.Completing, org.eclipse.jetty.util.Callback.Nested
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.thread.Invocable
org.eclipse.jetty.util.thread.Invocable.Callable, org.eclipse.jetty.util.thread.Invocable.InvocationType, org.eclipse.jetty.util.thread.Invocable.ReadyTask, org.eclipse.jetty.util.thread.Invocable.Task
Nested classes/interfaces inherited from interface org.cometd.bayeux.Promise
Promise.Completable<S>, Promise.Wrapper<W>
-
Field Summary
Fields inherited from interface org.eclipse.jetty.util.Callback
NOOP
Fields inherited from interface org.eclipse.jetty.util.thread.Invocable
__nonBlocking
-
Constructor Summary
ModifierConstructorDescriptionprotected
Writer
(TransportContext context, List<ServerMessage> messages) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Callback to invoke when the operation fails.protected void
onCompleteFailure
(Throwable failure) protected void
protected org.eclipse.jetty.util.IteratingCallback.Action
process()
void
Callback to invoke when the operation succeeds.Methods inherited from class org.eclipse.jetty.util.IteratingCallback
abort, close, failed, isAborted, isClosed, isFailed, isSucceeded, iterate, onSuccess, reset, 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.Callback
completeWith
Methods inherited from interface org.eclipse.jetty.util.thread.Invocable
getInvocationType
-
Constructor Details
-
Writer
-
-
Method Details
-
process
-
succeed
-
fail
-
onCompleteSuccess
protected void onCompleteSuccess()- Overrides:
onCompleteSuccess
in classorg.eclipse.jetty.util.IteratingCallback
-
onCompleteFailure
- Overrides:
onCompleteFailure
in classorg.eclipse.jetty.util.IteratingCallback
-