Class FrameFlusher
java.lang.Object
org.eclipse.jetty.util.IteratingCallback
org.eclipse.jetty.websocket.common.io.FrameFlusher
- All Implemented Interfaces:
org.eclipse.jetty.util.Callback, org.eclipse.jetty.util.thread.Invocable
- Direct Known Subclasses:
AbstractWebSocketConnection.Flusher
public class FrameFlusher
extends org.eclipse.jetty.util.IteratingCallback
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.eclipse.jetty.util.IteratingCallback
org.eclipse.jetty.util.IteratingCallback.ActionNested 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.NestedNested classes/interfaces inherited from interface org.eclipse.jetty.util.thread.Invocable
org.eclipse.jetty.util.thread.Invocable.InvocationType -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ByteBufferprivate BatchModeprivate final org.eclipse.jetty.io.ByteBufferPoolprivate final List<ByteBuffer> private final intprivate final LongAdderprivate booleanprivate booleanprivate final org.eclipse.jetty.io.EndPointprivate final List<FrameFlusher.FrameEntry> static final BinaryFrameprivate final Generatorprivate static final org.eclipse.jetty.util.log.Loggerprivate final intprivate final LongAdderprivate final Deque<FrameFlusher.FrameEntry> private ThrowableFields inherited from interface org.eclipse.jetty.util.Callback
NOOPFields inherited from interface org.eclipse.jetty.util.thread.Invocable
__nonBlocking -
Constructor Summary
ConstructorsConstructorDescriptionFrameFlusher(org.eclipse.jetty.io.ByteBufferPool bufferPool, Generator generator, org.eclipse.jetty.io.EndPoint endPoint, int bufferSize, int maxGather) -
Method Summary
Modifier and TypeMethodDescriptionprivate org.eclipse.jetty.util.IteratingCallback.Actionbatch()booleanenqueue(Frame frame, WriteCallback callback, BatchMode batchMode) private org.eclipse.jetty.util.IteratingCallback.Actionflush()longlongprivate intprotected voidnotifyCallbackFailure(WriteCallback callback, Throwable failure) protected voidnotifyCallbackSuccess(WriteCallback callback) voidonCompleteFailure(Throwable failure) protected org.eclipse.jetty.util.IteratingCallback.Actionprocess()private voidvoidprivate void(package private) voidtoString()Methods inherited from class org.eclipse.jetty.util.IteratingCallback
close, failed, isClosed, isFailed, isSucceeded, iterate, onCompleteSuccess, resetMethods inherited from class 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
-
LOG
private static final org.eclipse.jetty.util.log.Logger LOG -
bufferPool
private final org.eclipse.jetty.io.ByteBufferPool bufferPool -
endPoint
private final org.eclipse.jetty.io.EndPoint endPoint -
bufferSize
private final int bufferSize -
generator
-
maxGather
private final int maxGather -
queue
-
entries
-
buffers
-
messagesOut
-
bytesOut
-
closed
private boolean closed -
canEnqueue
private boolean canEnqueue -
terminated
-
aggregate
-
batchMode
-
-
Constructor Details
-
FrameFlusher
public FrameFlusher(org.eclipse.jetty.io.ByteBufferPool bufferPool, Generator generator, org.eclipse.jetty.io.EndPoint endPoint, int bufferSize, int maxGather)
-
-
Method Details
-
enqueue
-
process
-
batch
private org.eclipse.jetty.util.IteratingCallback.Action batch() -
flush
private org.eclipse.jetty.util.IteratingCallback.Action flush() -
getQueueSize
private int getQueueSize() -
succeeded
public void succeeded()- Specified by:
succeededin interfaceorg.eclipse.jetty.util.Callback- Overrides:
succeededin classorg.eclipse.jetty.util.IteratingCallback
-
succeedEntries
private void succeedEntries() -
onCompleteFailure
- Overrides:
onCompleteFailurein classorg.eclipse.jetty.util.IteratingCallback
-
releaseAggregate
private void releaseAggregate() -
terminate
-
notifyCallbackSuccess
-
notifyCallbackFailure
-
getMessagesOut
public long getMessagesOut() -
getBytesOut
public long getBytesOut() -
toString
- Overrides:
toStringin classorg.eclipse.jetty.util.IteratingCallback
-