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

public class FrameFlusher extends org.eclipse.jetty.util.IteratingCallback
  • 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.InvocationType
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final BinaryFrame
     

    Fields inherited from interface org.eclipse.jetty.util.Callback

    NOOP

    Fields inherited from interface org.eclipse.jetty.util.thread.Invocable

    __nonBlocking
  • Constructor Summary

    Constructors
    Constructor
    Description
    FrameFlusher(org.eclipse.jetty.io.ByteBufferPool bufferPool, Generator generator, org.eclipse.jetty.io.EndPoint endPoint, int bufferSize, int maxGather)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    enqueue(Frame frame, WriteCallback callback, BatchMode batchMode)
     
    long
     
    long
     
    protected void
     
    protected void
     
    void
     
    protected org.eclipse.jetty.util.IteratingCallback.Action
     
    void
     
     

    Methods inherited from class org.eclipse.jetty.util.IteratingCallback

    close, failed, isClosed, isFailed, isSucceeded, iterate, onCompleteSuccess, reset

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.eclipse.jetty.util.thread.Invocable

    getInvocationType
  • Field Details

    • FLUSH_FRAME

      public static final BinaryFrame FLUSH_FRAME
  • 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

      public boolean enqueue(Frame frame, WriteCallback callback, BatchMode batchMode)
    • process

      protected org.eclipse.jetty.util.IteratingCallback.Action process() throws Throwable
      Specified by:
      process in class org.eclipse.jetty.util.IteratingCallback
      Throws:
      Throwable
    • succeeded

      public void succeeded()
      Specified by:
      succeeded in interface org.eclipse.jetty.util.Callback
      Overrides:
      succeeded in class org.eclipse.jetty.util.IteratingCallback
    • onCompleteFailure

      public void onCompleteFailure(Throwable failure)
      Overrides:
      onCompleteFailure in class org.eclipse.jetty.util.IteratingCallback
    • notifyCallbackSuccess

      protected void notifyCallbackSuccess(WriteCallback callback)
    • notifyCallbackFailure

      protected void notifyCallbackFailure(WriteCallback callback, Throwable failure)
    • getMessagesOut

      public long getMessagesOut()
    • getBytesOut

      public long getBytesOut()
    • toString

      public String toString()
      Overrides:
      toString in class org.eclipse.jetty.util.IteratingCallback