Interface StreamManager.StreamHandlerFactory

Enclosing class:
StreamManager
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface StreamManager.StreamHandlerFactory
Factory interface for creating stream handlers.
  • Method Details

    • create

      @Nonnull ConnectionHandler create(@Nonnull PacketHandler packetHandler, @Nonnull ChannelConnection channel)
      Creates a new connection handler for a stream.
      Parameters:
      packetHandler - The main packet handler for the connection
      channel - The channel connection for the new stream
      Returns:
      A new connection handler for the stream