Class HTTP2Flusher.Entry

  • All Implemented Interfaces:
    org.eclipse.jetty.util.Callback, org.eclipse.jetty.util.thread.Invocable
    Direct Known Subclasses:
    HTTP2Session.ControlEntry, HTTP2Session.DataEntry
    Enclosing class:
    HTTP2Flusher

    public abstract static class HTTP2Flusher.Entry
    extends org.eclipse.jetty.util.Callback.Nested
    • Nested Class Summary

      • 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
      protected Frame frame  
      protected IStream stream  
      • 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
      protected Entry​(Frame frame, IStream stream, org.eclipse.jetty.util.Callback callback)  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) void commit()  
      void failed​(java.lang.Throwable x)  
      protected abstract boolean generate​(org.eclipse.jetty.io.ByteBufferPool.Lease lease)  
      int getDataBytesRemaining()  
      abstract int getFrameBytesGenerated()  
      (package private) boolean hasHighPriority()  
      abstract long onFlushed​(long bytes)  
      private boolean shouldBeDropped()  
      java.lang.String toString()  
      • Methods inherited from class org.eclipse.jetty.util.Callback.Nested

        getCallback, getInvocationType, succeeded
      • Methods inherited from class org.eclipse.jetty.util.Callback.Completing

        completed
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • frame

        protected final Frame frame
      • stream

        protected final IStream stream
    • Constructor Detail

      • Entry

        protected Entry​(Frame frame,
                        IStream stream,
                        org.eclipse.jetty.util.Callback callback)
    • Method Detail

      • getFrameBytesGenerated

        public abstract int getFrameBytesGenerated()
      • getDataBytesRemaining

        public int getDataBytesRemaining()
      • generate

        protected abstract boolean generate​(org.eclipse.jetty.io.ByteBufferPool.Lease lease)
                                     throws HpackException
        Throws:
        HpackException
      • onFlushed

        public abstract long onFlushed​(long bytes)
                                throws java.io.IOException
        Throws:
        java.io.IOException
      • hasHighPriority

        boolean hasHighPriority()
      • failed

        public void failed​(java.lang.Throwable x)
        Specified by:
        failed in interface org.eclipse.jetty.util.Callback
        Overrides:
        failed in class org.eclipse.jetty.util.Callback.Nested
      • shouldBeDropped

        private boolean shouldBeDropped()
        Returns:
        whether the entry should not be processed
      • commit

        void commit()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object