Package net.minecraft.network
Class RateLimitedConnection
java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
io.netty.channel.SimpleChannelInboundHandler<Packet<?>>
net.minecraft.network.ClientConnection
net.minecraft.network.RateLimitedConnection
- All Implemented Interfaces:
io.netty.channel.ChannelHandler,io.netty.channel.ChannelInboundHandler
public class RateLimitedConnection extends ClientConnection
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.network.ClientConnection
ClientConnection.QueuedPacketNested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
io.netty.channel.ChannelHandler.Sharable -
Field Summary
Fields Modifier and Type Field Description private static LoggerLOGGERprivate static TextRATE_LIMIT_EXCEEDED_MESSAGEprivate intrateLimitFields inherited from class net.minecraft.network.ClientConnection
ATTR_KEY_PROTOCOL, CLIENT_IO_GROUP, CLIENT_IO_GROUP_EPOLL, CLIENT_IO_GROUP_LOCAL, MARKER_NETWORK, MARKER_NETWORK_PACKETS -
Constructor Summary
Constructors Constructor Description RateLimitedConnection(int rateLimit) -
Method Summary
Modifier and Type Method Description protected voidupdateStats()Methods inherited from class net.minecraft.network.ClientConnection
channelActive, channelInactive, channelRead0, connect, connectLocal, disableAutoRead, disconnect, exceptionCaught, getAddress, getAveragePacketsReceived, getAveragePacketsSent, getDisconnectReason, getPacketListener, handleDisconnection, hasChannel, isEncrypted, isLocal, isOpen, send, send, setCompressionThreshold, setPacketListener, setState, setupEncryption, tickMethods inherited from class io.netty.channel.SimpleChannelInboundHandler
acceptInboundMessage, channelReadMethods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggeredMethods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, handlerRemoved, isSharableMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.netty.channel.ChannelHandler
handlerAdded, handlerRemoved
-
Field Details
-
LOGGER
-
RATE_LIMIT_EXCEEDED_MESSAGE
-
rateLimit
private final int rateLimit
-
-
Constructor Details
-
RateLimitedConnection
public RateLimitedConnection(int rateLimit)
-
-
Method Details
-
updateStats
protected void updateStats()- Overrides:
updateStatsin classClientConnection
-