Class HTTP2Connection

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, org.eclipse.jetty.io.Connection, org.eclipse.jetty.io.WriteFlusher.Listener

    public class HTTP2Connection
    extends org.eclipse.jetty.io.AbstractConnection
    implements org.eclipse.jetty.io.WriteFlusher.Listener
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      protected class  HTTP2Connection.HTTP2Producer  
      • Nested classes/interfaces inherited from interface org.eclipse.jetty.io.Connection

        org.eclipse.jetty.io.Connection.Listener, org.eclipse.jetty.io.Connection.UpgradeFrom, org.eclipse.jetty.io.Connection.UpgradeTo
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static org.eclipse.jetty.util.log.Logger LOG  
    • Constructor Summary

      Constructors 
      Constructor Description
      HTTP2Connection​(org.eclipse.jetty.io.ByteBufferPool byteBufferPool, java.util.concurrent.Executor executor, org.eclipse.jetty.io.EndPoint endPoint, Parser parser, ISession session, int bufferSize)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      protected void dispatch()  
      long getBytesIn()  
      long getBytesOut()  
      long getMessagesIn()  
      long getMessagesOut()  
      protected Parser getParser()  
      ISession getSession()  
      protected void offerTask​(java.lang.Runnable task, boolean dispatch)  
      void onClose()  
      void onFillable()  
      void onFlushed​(long bytes)  
      boolean onIdleExpired()  
      void onOpen()  
      protected void produce()  
      protected void setInputBuffer​(java.nio.ByteBuffer buffer)  
      • Methods inherited from class org.eclipse.jetty.io.AbstractConnection

        addListener, failedCallback, fillInterested, getCreatedTimeStamp, getEndPoint, getExecutor, getInputBufferSize, isFillInterested, onFillInterestedFailed, onReadTimeout, removeListener, setInputBufferSize, toConnectionString, toString, tryFillInterested, tryFillInterested
      • Methods inherited from class java.lang.Object

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

      • LOG

        protected static final org.eclipse.jetty.util.log.Logger LOG
    • Constructor Detail

      • HTTP2Connection

        public HTTP2Connection​(org.eclipse.jetty.io.ByteBufferPool byteBufferPool,
                               java.util.concurrent.Executor executor,
                               org.eclipse.jetty.io.EndPoint endPoint,
                               Parser parser,
                               ISession session,
                               int bufferSize)
    • Method Detail

      • getMessagesIn

        public long getMessagesIn()
        Specified by:
        getMessagesIn in interface org.eclipse.jetty.io.Connection
        Overrides:
        getMessagesIn in class org.eclipse.jetty.io.AbstractConnection
      • getMessagesOut

        public long getMessagesOut()
        Specified by:
        getMessagesOut in interface org.eclipse.jetty.io.Connection
        Overrides:
        getMessagesOut in class org.eclipse.jetty.io.AbstractConnection
      • getBytesIn

        public long getBytesIn()
        Specified by:
        getBytesIn in interface org.eclipse.jetty.io.Connection
        Overrides:
        getBytesIn in class org.eclipse.jetty.io.AbstractConnection
      • getBytesOut

        public long getBytesOut()
        Specified by:
        getBytesOut in interface org.eclipse.jetty.io.Connection
        Overrides:
        getBytesOut in class org.eclipse.jetty.io.AbstractConnection
      • getSession

        public ISession getSession()
      • getParser

        protected Parser getParser()
      • setInputBuffer

        protected void setInputBuffer​(java.nio.ByteBuffer buffer)
      • onOpen

        public void onOpen()
        Specified by:
        onOpen in interface org.eclipse.jetty.io.Connection
        Overrides:
        onOpen in class org.eclipse.jetty.io.AbstractConnection
      • onClose

        public void onClose()
        Specified by:
        onClose in interface org.eclipse.jetty.io.Connection
        Overrides:
        onClose in class org.eclipse.jetty.io.AbstractConnection
      • onFillable

        public void onFillable()
        Specified by:
        onFillable in class org.eclipse.jetty.io.AbstractConnection
      • onIdleExpired

        public boolean onIdleExpired()
        Specified by:
        onIdleExpired in interface org.eclipse.jetty.io.Connection
        Overrides:
        onIdleExpired in class org.eclipse.jetty.io.AbstractConnection
      • offerTask

        protected void offerTask​(java.lang.Runnable task,
                                 boolean dispatch)
      • produce

        protected void produce()
      • dispatch

        protected void dispatch()
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Specified by:
        close in interface org.eclipse.jetty.io.Connection
        Overrides:
        close in class org.eclipse.jetty.io.AbstractConnection
      • onFlushed

        public void onFlushed​(long bytes)
                       throws java.io.IOException
        Specified by:
        onFlushed in interface org.eclipse.jetty.io.WriteFlusher.Listener
        Throws:
        java.io.IOException