Top Inners Fields Constructors Methods
org.eclipse.jetty.http3

public Class MessageFlusher

extends IteratingCallback
Class Inheritance
Imports
java.nio.ByteBuffer, java.util.ArrayDeque, .List, .Queue, org.eclipse.jetty.http3.frames.Frame, org.eclipse.jetty.http3.generator.MessageGenerator, org.eclipse.jetty.http3.qpack.QpackEncoder, org.eclipse.jetty.io.ByteBufferPool, org.eclipse.jetty.quic.common.QuicStreamEndPoint, org.eclipse.jetty.util.Callback, .IteratingCallback, org.eclipse.jetty.util.thread.AutoLock, org.slf4j.Logger, .LoggerFactory

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
public static class

Field Summary

Modifier and TypeField and Description
private final ByteBufferPool.Accumulator
private final Queue<MessageFlusher.Entry>
private MessageFlusher.Entry
private final MessageGenerator
private final AutoLock
private static final Logger

Constructor Summary

AccessConstructor and Description
public
MessageFlusher(ByteBufferPool bufferPool, QpackEncoder encoder, boolean useDirectByteBuffers)

Method Summary

Modifier and TypeMethod and Description
public void
failed(Throwable x)

Overrides org.eclipse.jetty.util.IteratingCallback.failed.

Overrides default org.eclipse.jetty.util.Callback.failed.

Method to invoke when the asynchronous sub-task fails, or to fail the overall asynchronous task and therefore terminate the iteration.

public Invocable.InvocationType
public boolean
offer(QuicStreamEndPoint endPoint, Frame frame, Callback callback)

protected IteratingCallback.Action
process()

Implements abstract org.eclipse.jetty.util.IteratingCallback.process.

Method called by iterate() to process the asynchronous sub-task.

public void
succeeded()

Overrides org.eclipse.jetty.util.IteratingCallback.succeeded.

Overrides default org.eclipse.jetty.util.Callback.succeeded.

Method to invoke when the asynchronous sub-task succeeds.

Inherited from org.eclipse.jetty.util.IteratingCallback:
abortcloseisAbortedisClosedisFailedisSucceedediterateonCompleteFailureonCompleteSuccessresettoString

Field Detail

accumulatorback to summary
private final ByteBufferPool.Accumulator accumulator
entriesback to summary
private final Queue<MessageFlusher.Entry> entries
entryback to summary
private MessageFlusher.Entry entry
generatorback to summary
private final MessageGenerator generator
lockback to summary
private final AutoLock lock
LOGback to summary
private static final Logger LOG

Constructor Detail

MessageFlusherback to summary
public MessageFlusher(ByteBufferPool bufferPool, QpackEncoder encoder, boolean useDirectByteBuffers)

Method Detail

failedback to summary
public void failed(Throwable x)

Overrides org.eclipse.jetty.util.IteratingCallback.failed.

Overrides default org.eclipse.jetty.util.Callback.failed.

Doc from org.eclipse.jetty.util.IteratingCallback.failed.

Method to invoke when the asynchronous sub-task fails, or to fail the overall asynchronous task and therefore terminate the iteration.

Subclasses that override this method must always remember to call super.failed(Throwable).

Eventually, onCompleteFailure(Throwable) is called, either by the caller thread or by the processing thread.

Annotations
@Override
getInvocationTypeback to summary
public Invocable.InvocationType getInvocationType()

Overrides default org.eclipse.jetty.util.thread.Invocable.getInvocationType.

Annotations
@Override
offerback to summary
public boolean offer(QuicStreamEndPoint endPoint, Frame frame, Callback callback)
processback to summary
protected IteratingCallback.Action process()

Implements abstract org.eclipse.jetty.util.IteratingCallback.process.

Doc from org.eclipse.jetty.util.IteratingCallback.process.

Method called by iterate() to process the asynchronous sub-task.

Implementations must initiate the asynchronous execution of the sub-task (if any) and return an appropriate action:

  • Action#IDLE when no sub tasks are available for execution but the overall job is not completed yet
  • Action#SCHEDULED when the sub task asynchronous execution has been started
  • Action#SUCCEEDED when the overall job is completed
Annotations
@Override
succeededback to summary
public void succeeded()

Overrides org.eclipse.jetty.util.IteratingCallback.succeeded.

Overrides default org.eclipse.jetty.util.Callback.succeeded.

Doc from org.eclipse.jetty.util.IteratingCallback.succeeded.

Method to invoke when the asynchronous sub-task succeeds.

Subclasses that override this method must always remember to call super.succeeded().

Annotations
@Override
org.eclipse.jetty.http3 back to summary

private Class MessageFlusher.Entry

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final Callback
private final QuicStreamEndPoint
private final Frame

Constructor Summary

AccessConstructor and Description
private
Entry(QuicStreamEndPoint endPoint, Frame frame, Callback callback)

Method Summary

Modifier and TypeMethod and Description
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

callbackback to summary
private final Callback callback
endPointback to summary
private final QuicStreamEndPoint endPoint
frameback to summary
private final Frame frame

Constructor Detail

Entryback to summary
private Entry(QuicStreamEndPoint endPoint, Frame frame, Callback callback)

Method Detail

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override
org.eclipse.jetty.http3 back to summary

public Class MessageFlusher.FlushFrame

extends Frame
Class Inheritance

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from org.eclipse.jetty.http3.frames.Frame:
getFrameTypeisLasttoString

Constructor Detail

FlushFrameback to summary
public FlushFrame()