Contents
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.
Factory interface for creating stream handlers.
-
Method Summary
Modifier and TypeMethodDescriptioncreate(PacketHandler packetHandler, ChannelConnection channel) Creates a new connection handler for a stream.
-
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 connectionchannel- The channel connection for the new stream- Returns:
- A new connection handler for the stream
-