Class CompressExtension.Flusher

java.lang.Object
org.eclipse.jetty.util.IteratingCallback
org.eclipse.jetty.websocket.common.extensions.compress.CompressExtension.Flusher
All Implemented Interfaces:
org.eclipse.jetty.util.Callback, org.eclipse.jetty.util.thread.Invocable, WriteCallback
Enclosing class:
CompressExtension

private class CompressExtension.Flusher extends org.eclipse.jetty.util.IteratingCallback implements WriteCallback
  • 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
     
    private boolean
     

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

    NOOP

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

    __nonBlocking
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
     
  • Method Summary

    Modifier and Type
    Method
    Description
    private void
    compress(CompressExtension.FrameEntry entry, boolean first)
     
    private void
     
    void
     
    protected void
     
    protected void
     
    protected org.eclipse.jetty.util.IteratingCallback.Action
     
    void
    Callback invoked when the write fails.
    void
    Callback invoked when the write completes.

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

    close, isClosed, isFailed, isSucceeded, iterate, reset, succeeded, toString

    Methods inherited from class java.lang.Object

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

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

    getInvocationType
  • Field Details

  • Constructor Details

    • Flusher

      private Flusher()
  • Method Details

    • failed

      public void failed(Throwable x)
      Specified by:
      failed in interface org.eclipse.jetty.util.Callback
      Overrides:
      failed in class org.eclipse.jetty.util.IteratingCallback
    • process

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

      private void deflate(CompressExtension.FrameEntry entry)
    • compress

      private void compress(CompressExtension.FrameEntry entry, boolean first)
    • onCompleteSuccess

      protected void onCompleteSuccess()
      Overrides:
      onCompleteSuccess in class org.eclipse.jetty.util.IteratingCallback
    • onCompleteFailure

      protected void onCompleteFailure(Throwable x)
      Overrides:
      onCompleteFailure in class org.eclipse.jetty.util.IteratingCallback
    • writeSuccess

      public void writeSuccess()
      Description copied from interface: WriteCallback

      Callback invoked when the write completes.

      Specified by:
      writeSuccess in interface WriteCallback
      See Also:
    • writeFailed

      public void writeFailed(Throwable x)
      Description copied from interface: WriteCallback

      Callback invoked when the write fails.

      Specified by:
      writeFailed in interface WriteCallback
      Parameters:
      x - the reason for the write failure