Class PendingStreamConnectionHandler

java.lang.Object
com.hypixel.hytale.server.core.io.stream.PendingStreamConnectionHandler
All Implemented Interfaces:
ConnectionHandler

public class PendingStreamConnectionHandler extends Object implements ConnectionHandler
Quiche-backend equivalent of PendingStreamHandler. Handles the StreamOpen handshake for client-initiated auxiliary streams, then replaces itself with the appropriate type-specific handler.
  • Constructor Details

  • Method Details

    • handle

      public void handle(@Nonnull ToServerPacket packet)
      Description copied from interface: ConnectionHandler
      Called to handle the given incoming packet.
      Specified by:
      handle in interface ConnectionHandler
      Parameters:
      packet - The packet to be handled
    • closed

      public void closed(@Nullable NetworkChannel networkChannel)
      Description copied from interface: ConnectionHandler
      Called when the affiliated network channel has been closed.
      Specified by:
      closed in interface ConnectionHandler
      Parameters:
      networkChannel - The network channel that was closed, or null if unknown
    • registered

      public void registered(@Nullable ConnectionHandler oldHandler)
      Description copied from interface: ConnectionHandler
      Called when this handler is registered on a connection, potentially replacing an old handler.
      Specified by:
      registered in interface ConnectionHandler
      Parameters:
      oldHandler - The previous handler, or null if this is the first handler
    • unregistered

      public void unregistered(@Nullable ConnectionHandler newHandler)
      Description copied from interface: ConnectionHandler
      Called when this handler is unregistered from a connection, potentially being replaced by a new handler.
      Specified by:
      unregistered in interface ConnectionHandler
      Parameters:
      newHandler - The new handler replacing this one, or null
    • logCloseMessage

      public void logCloseMessage()
      Description copied from interface: ConnectionHandler
      Called to log that this handler's connection has been closed.
      Specified by:
      logCloseMessage in interface ConnectionHandler