Class ServerQuicConnection

All Implemented Interfaces:
Closeable, AutoCloseable, Connection

public class ServerQuicConnection extends QuicConnection

The server specific implementation of QuicConnection.

  • 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
    • createSession

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

      public void schedule(ServerQuicSession session)
    • 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