- Enclosing class:
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jetty.util.IteratingCallback
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.Callback
Callback.Completable, Callback.Completing, Callback.Nested
Methods inherited from class org.eclipse.jetty.websocket.core.internal.DemandingFlusher
closeFlusher, demand, emitFrame, failFlusher, onCompleteFailure, onFrame, process, setNextDemand
Methods inherited from class org.eclipse.jetty.util.IteratingCallback
close, failed, isClosed, isFailed, isSucceeded, iterate, onCompleteSuccess, reset, succeeded, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
handleDescription copied from class:
Called when there is demand for a single frame to be produced. During this method a single call can be made to
DemandingFlusher.emitFrame(Frame, Callback)which will forward this frame towards the application. Returning true from this method signals that you are done processing the current Frame, and the next invocation of this method will have the next frame.
Note that the callback supplied here is specially wrapped so that you can call it multiple times and it will not be completed more than once. This simplifies the handling of failure cases.
- Specified by:
frame- the original frame.
callback- to succeed to release the frame payload.
first- if this is the first time this method has been called for this frame.
- false to continue processing this frame, true to complete processing and get a new frame.