Contents
Class PendingStreamHandler
java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
com.hypixel.hytale.server.core.io.stream.PendingStreamHandler
- All Implemented Interfaces:
io.netty.channel.ChannelHandler, io.netty.channel.ChannelInboundHandler
public class PendingStreamHandler
extends io.netty.channel.ChannelInboundHandlerAdapter
Handler for new QUIC streams that have not yet identified their type.
The first packet on the stream must be a StreamOpen packet, which
identifies the stream type and triggers the appropriate handler setup.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
io.netty.channel.ChannelHandler.Sharable -
Constructor Summary
ConstructorsConstructorDescriptionPendingStreamHandler(PacketHandler packetHandler) Creates a new PendingStreamHandler using the global StreamManager singleton.PendingStreamHandler(PacketHandler packetHandler, StreamManager streamManager) Creates a new PendingStreamHandler with an explicit StreamManager. -
Method Summary
Modifier and TypeMethodDescriptionvoidchannelInactive(io.netty.channel.ChannelHandlerContext ctx) voidchannelRead(io.netty.channel.ChannelHandlerContext ctx, Object msg) voidexceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable cause) Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggeredMethods inherited from class io.netty.channel.ChannelHandlerAdapter
handlerAdded, handlerRemoved, isSharableMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.netty.channel.ChannelHandler
handlerAdded, handlerRemoved
-
Constructor Details
-
PendingStreamHandler
Creates a new PendingStreamHandler using the global StreamManager singleton.- Parameters:
packetHandler- The main packet handler for this connection
-
PendingStreamHandler
public PendingStreamHandler(@Nonnull PacketHandler packetHandler, @Nonnull StreamManager streamManager) Creates a new PendingStreamHandler with an explicit StreamManager.- Parameters:
packetHandler- The main packet handler for this connectionstreamManager- The stream manager to use for handler lookup
-
-
Method Details
-
channelRead
- Specified by:
channelReadin interfaceio.netty.channel.ChannelInboundHandler- Overrides:
channelReadin classio.netty.channel.ChannelInboundHandlerAdapter
-
exceptionCaught
public void exceptionCaught(@Nonnull io.netty.channel.ChannelHandlerContext ctx, @Nonnull Throwable cause) - Specified by:
exceptionCaughtin interfaceio.netty.channel.ChannelHandler- Specified by:
exceptionCaughtin interfaceio.netty.channel.ChannelInboundHandler- Overrides:
exceptionCaughtin classio.netty.channel.ChannelInboundHandlerAdapter
-
channelInactive
-