Class FragmentExtension.Flusher

  • All Implemented Interfaces:
    org.eclipse.jetty.util.Callback, org.eclipse.jetty.util.thread.Invocable, WriteCallback
    Enclosing class:
    FragmentExtension

    private class FragmentExtension.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 FragmentExtension.FrameEntry current  
      private boolean finished  
      • 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 Flusher()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private void fragment​(FragmentExtension.FrameEntry entry, boolean first)  
      private void notifyCallbackFailure​(WriteCallback callback, java.lang.Throwable failure)  
      private void notifyCallbackSuccess​(WriteCallback callback)  
      protected void onCompleteFailure​(java.lang.Throwable x)  
      protected void onCompleteSuccess()  
      protected org.eclipse.jetty.util.IteratingCallback.Action process()  
      void writeFailed​(java.lang.Throwable x)
      Callback invoked when the write fails.
      void writeSuccess()
      Callback invoked when the write completes.
      • Methods inherited from class org.eclipse.jetty.util.IteratingCallback

        close, failed, 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
    • Constructor Detail

      • Flusher

        private Flusher()
    • Method Detail

      • process

        protected org.eclipse.jetty.util.IteratingCallback.Action process()
        Specified by:
        process in class org.eclipse.jetty.util.IteratingCallback
      • onCompleteSuccess

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

        protected void onCompleteFailure​(java.lang.Throwable x)
        Overrides:
        onCompleteFailure in class org.eclipse.jetty.util.IteratingCallback
      • writeFailed

        public void writeFailed​(java.lang.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
      • notifyCallbackSuccess

        private void notifyCallbackSuccess​(WriteCallback callback)
      • notifyCallbackFailure

        private void notifyCallbackFailure​(WriteCallback callback,
                                           java.lang.Throwable failure)