Class FrameFlusher
java.lang.Object
org.eclipse.jetty.util.IteratingCallback
org.eclipse.jetty.websocket.common.io.FrameFlusher
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jetty.util.IteratingCallback
IteratingCallback.ActionNested classes/interfaces inherited from interface org.eclipse.jetty.util.Callback
Callback.Completable, Callback.Completing, Callback.NestedNested classes/interfaces inherited from interface org.eclipse.jetty.util.thread.Invocable
Invocable.InvocationType -
Field Summary
FieldsFields inherited from interface org.eclipse.jetty.util.thread.Invocable
__nonBlocking -
Constructor Summary
ConstructorsConstructorDescriptionFrameFlusher(ByteBufferPool bufferPool, Generator generator, EndPoint endPoint, int bufferSize, int maxGather) -
Method Summary
Modifier and TypeMethodDescriptionbooleanenqueue(Frame frame, WriteCallback callback, BatchMode batchMode) longlongprotected voidnotifyCallbackFailure(WriteCallback callback, Throwable failure) protected voidnotifyCallbackSuccess(WriteCallback callback) voidonCompleteFailure(Throwable failure) protected IteratingCallback.Actionprocess()voidtoString()Methods inherited from class org.eclipse.jetty.util.IteratingCallback
close, failed, isClosed, isFailed, isSucceeded, iterate, onCompleteSuccess, resetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.jetty.util.thread.Invocable
getInvocationType
-
Field Details
-
FLUSH_FRAME
-
-
Constructor Details
-
FrameFlusher
public FrameFlusher(ByteBufferPool bufferPool, Generator generator, EndPoint endPoint, int bufferSize, int maxGather)
-
-
Method Details
-
enqueue
-
process
- Specified by:
processin classIteratingCallback- Throws:
Throwable
-
succeeded
public void succeeded()- Specified by:
succeededin interfaceCallback- Overrides:
succeededin classIteratingCallback
-
onCompleteFailure
- Overrides:
onCompleteFailurein classIteratingCallback
-
notifyCallbackSuccess
-
notifyCallbackFailure
-
getMessagesOut
public long getMessagesOut() -
getBytesOut
public long getBytesOut() -
toString
- Overrides:
toStringin classIteratingCallback
-