Class QuicStreamEndPoint

java.lang.Object
org.eclipse.jetty.io.IdleTimeout
org.eclipse.jetty.io.AbstractEndPoint
org.eclipse.jetty.quic.common.QuicStreamEndPoint
All Implemented Interfaces:
Closeable, AutoCloseable, org.eclipse.jetty.io.EndPoint

public class QuicStreamEndPoint extends org.eclipse.jetty.io.AbstractEndPoint

An EndPoint implementation on top of a QUIC stream.

The correspondent Connection associated to this QuicStreamEndPoint parses and generates the protocol specific bytes transported by QUIC.

  • Constructor Details

    • QuicStreamEndPoint

      public QuicStreamEndPoint(org.eclipse.jetty.util.thread.Scheduler scheduler, QuicSession session, long streamId)
  • Method Details

    • opened

      public void opened()
    • closed

      public void closed(Throwable failure)
    • getQuicSession

      public QuicSession getQuicSession()
    • getStreamId

      public long getStreamId()
    • getLocalSocketAddress

      public SocketAddress getLocalSocketAddress()
      Specified by:
      getLocalSocketAddress in interface org.eclipse.jetty.io.EndPoint
      Overrides:
      getLocalSocketAddress in class org.eclipse.jetty.io.AbstractEndPoint
    • getRemoteSocketAddress

      public SocketAddress getRemoteSocketAddress()
      Specified by:
      getRemoteSocketAddress in interface org.eclipse.jetty.io.EndPoint
      Overrides:
      getRemoteSocketAddress in class org.eclipse.jetty.io.AbstractEndPoint
    • isStreamFinished

      public boolean isStreamFinished()
    • shutdownInput

      public void shutdownInput(long error)
    • shutdownOutput

      public void shutdownOutput(long error)
    • close

      public void close(long error, Throwable failure)
    • onClose

      public void onClose(Throwable failure)
      Specified by:
      onClose in interface org.eclipse.jetty.io.EndPoint
      Overrides:
      onClose in class org.eclipse.jetty.io.AbstractEndPoint
    • fill

      public int fill(ByteBuffer buffer) throws IOException
      Throws:
      IOException
    • flush

      public boolean flush(ByteBuffer... buffers) throws IOException
      Throws:
      IOException
    • write

      public void write(org.eclipse.jetty.util.Callback callback, List<ByteBuffer> buffers, boolean last)
    • getTransport

      public Object getTransport()
    • onWritable

      public void onWritable()
    • onReadable

      public boolean onReadable()
      Returns:
      whether this endPoint is interested in reads
    • fillInterested

      public void fillInterested(org.eclipse.jetty.util.Callback callback)
      Specified by:
      fillInterested in interface org.eclipse.jetty.io.EndPoint
      Overrides:
      fillInterested in class org.eclipse.jetty.io.AbstractEndPoint
    • tryFillInterested

      public boolean tryFillInterested(org.eclipse.jetty.util.Callback callback)
      Specified by:
      tryFillInterested in interface org.eclipse.jetty.io.EndPoint
      Overrides:
      tryFillInterested in class org.eclipse.jetty.io.AbstractEndPoint
    • onIncompleteFlush

      protected void onIncompleteFlush()
      Specified by:
      onIncompleteFlush in class org.eclipse.jetty.io.AbstractEndPoint
    • needsFillInterest

      protected void needsFillInterest()
      Specified by:
      needsFillInterest in class org.eclipse.jetty.io.AbstractEndPoint
    • toString

      public String toString()
      Overrides:
      toString in class org.eclipse.jetty.io.AbstractEndPoint