Class ClientQuicConnection

All Implemented Interfaces:
Closeable, AutoCloseable, Connection

public class ClientQuicConnection extends QuicConnection

The client specific implementation of QuicConnection.

For each ClientConnector.connect(SocketAddress, Map) operation, a new DatagramChannelEndPoint is created with an associated ClientQuicConnection.

  • Constructor Details

  • Method Details

    • onOpen

      public void onOpen()
      Description copied from interface: Connection

      Callback method invoked when this connection is opened.

      Creators of the connection implementation are responsible for calling this method.

      Specified by:
      onOpen in interface Connection
      Overrides:
      onOpen in class QuicConnection
    • onFillable

      public void onFillable()
      Description copied from class: AbstractConnection

      Callback method invoked when the endpoint is ready to be read.

      Overrides:
      onFillable in class QuicConnection
      See Also:
    • createSession

      protected QuicSession createSession(SocketAddress remoteAddress, ByteBuffer cipherBuffer) throws IOException
      Specified by:
      createSession in class QuicConnection
      Throws:
      IOException
    • onIdleExpired

      public boolean onIdleExpired()
      Description copied from interface: Connection

      Callback method invoked upon an idle timeout event.

      Implementations of this method may return true to indicate that the idle timeout handling should proceed normally, typically failing the EndPoint and causing it to be closed.

      When false is returned, the handling of the idle timeout event is halted immediately and the EndPoint left in the state it was before the idle timeout event.

      Specified by:
      onIdleExpired in interface Connection
      Specified by:
      onIdleExpired in class QuicConnection
      Returns:
      true to let the EndPoint handle the idle timeout, false to tell the EndPoint to halt the handling of the idle timeout.
    • outwardClose

      public void outwardClose(QuicSession session, Throwable failure)
      Overrides:
      outwardClose in class QuicConnection