Package net.minecraft.server.network
Class ServerConnectionListener.LatencySimulator
java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
net.minecraft.server.network.ServerConnectionListener.LatencySimulator
- All Implemented Interfaces:
io.netty.channel.ChannelHandler
,io.netty.channel.ChannelInboundHandler
- Enclosing class:
ServerConnectionListener
static class ServerConnectionListener.LatencySimulator
extends io.netty.channel.ChannelInboundHandlerAdapter
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static class
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
io.netty.channel.ChannelHandler.Sharable
-
Field Summary
Modifier and TypeFieldDescriptionprivate final int
private final int
private final List<ServerConnectionListener.LatencySimulator.DelayedMessage>
private static final io.netty.util.Timer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
channelRead
(io.netty.channel.ChannelHandlerContext p_143601_, Object p_143602_) private void
delayDownstream
(io.netty.channel.ChannelHandlerContext p_143596_, Object p_143597_) private void
onTimeout
(io.netty.util.Timeout p_143599_) Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggered
Methods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.netty.channel.ChannelHandler
handlerAdded, handlerRemoved
-
Field Details
-
TIMER
private static final io.netty.util.Timer TIMER -
delay
private final int delay -
jitter
private final int jitter -
queuedMessages
-
-
Constructor Details
-
LatencySimulator
public LatencySimulator(int p_143593_, int p_143594_)
-
-
Method Details
-
channelRead
- Specified by:
channelRead
in interfaceio.netty.channel.ChannelInboundHandler
- Overrides:
channelRead
in classio.netty.channel.ChannelInboundHandlerAdapter
-
delayDownstream
-
onTimeout
private void onTimeout(io.netty.util.Timeout p_143599_)
-