Class HTTP2Connection

java.lang.Object
org.eclipse.jetty.io.AbstractConnection
org.eclipse.jetty.http2.internal.HTTP2Connection
All Implemented Interfaces:
Closeable, AutoCloseable, org.eclipse.jetty.io.Connection, org.eclipse.jetty.io.Connection.UpgradeTo, org.eclipse.jetty.io.WriteFlusher.Listener, org.eclipse.jetty.util.thread.Invocable

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

    Nested Classes
    Modifier and Type
    Class
    Description
    protected class 
     

    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

    Nested classes/interfaces inherited from interface org.eclipse.jetty.util.thread.Invocable

    org.eclipse.jetty.util.thread.Invocable.Callable, org.eclipse.jetty.util.thread.Invocable.InvocationType, org.eclipse.jetty.util.thread.Invocable.ReadyTask, org.eclipse.jetty.util.thread.Invocable.Task
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected static final org.slf4j.Logger
     

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

    __nonBlocking, NOOP
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    HTTP2Connection(org.eclipse.jetty.io.RetainableByteBufferPool retainableByteBufferPool, Executor executor, org.eclipse.jetty.io.EndPoint endPoint, Parser parser, HTTP2Session session, int bufferSize)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    protected void
     
    long
     
    long
     
    long
     
    long
     
    protected Parser
     
     
    boolean
     
    boolean
     
    protected void
    offerTask(Runnable task, boolean dispatch)
     
    void
     
    void
     
    void
    onFlushed(long bytes)
     
    boolean
     
    void
     
    void
     
    protected void
     
    void
    setUseInputDirectByteBuffers(boolean useInputDirectByteBuffers)
     
    void
    setUseOutputDirectByteBuffers(boolean useOutputDirectByteBuffers)
     

    Methods inherited from class org.eclipse.jetty.io.AbstractConnection

    addEventListener, failedCallback, fillInterested, getCreatedTimeStamp, getEndPoint, getExecutor, getInputBufferSize, getInvocationType, isFillInterested, onFillInterestedFailed, onReadTimeout, removeEventListener, setInputBufferSize, toConnectionString, toString, tryFillInterested

    Methods inherited from class java.lang.Object

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

    • LOG

      protected static final org.slf4j.Logger LOG
  • Constructor Details

    • HTTP2Connection

      protected HTTP2Connection(org.eclipse.jetty.io.RetainableByteBufferPool retainableByteBufferPool, Executor executor, org.eclipse.jetty.io.EndPoint endPoint, Parser parser, HTTP2Session session, int bufferSize)
  • Method Details

    • 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 HTTP2Session getSession()
    • getParser

      protected Parser getParser()
    • onUpgradeTo

      public void onUpgradeTo(ByteBuffer buffer)
      Specified by:
      onUpgradeTo in interface org.eclipse.jetty.io.Connection.UpgradeTo
    • isUseInputDirectByteBuffers

      public boolean isUseInputDirectByteBuffers()
    • setUseInputDirectByteBuffers

      public void setUseInputDirectByteBuffers(boolean useInputDirectByteBuffers)
    • isUseOutputDirectByteBuffers

      public boolean isUseOutputDirectByteBuffers()
    • setUseOutputDirectByteBuffers

      public void setUseOutputDirectByteBuffers(boolean useOutputDirectByteBuffers)
    • 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(Throwable cause)
      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(Runnable task, boolean dispatch)
    • produce

      protected void produce()
    • dispatch

      protected void dispatch()
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface 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 IOException
      Specified by:
      onFlushed in interface org.eclipse.jetty.io.WriteFlusher.Listener
      Throws:
      IOException