Class PacketStatsRecorderImpl
java.lang.Object
com.hypixel.hytale.server.core.io.PacketStatsRecorderImpl
- All Implemented Interfaces:
PacketStatsRecorder
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface com.hypixel.hytale.protocol.io.PacketStatsRecorder
PacketStatsRecorder.RecentStats -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final PacketStatsRecorderImpl.PacketStatsEntry[]static final MetricsRegistry<PacketStatsRecorderImpl> Fields inherited from interface com.hypixel.hytale.protocol.io.PacketStatsRecorder
CHANNEL_KEY, NOOP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetEntry(int packetId) voidrecordReceive(int packetId, int uncompressedSize, int compressedSize) voidrecordSend(int packetId, int uncompressedSize, int compressedSize)
-
Field Details
-
METRICS_REGISTRY
-
entries
-
-
Constructor Details
-
PacketStatsRecorderImpl
public PacketStatsRecorderImpl()
-
-
Method Details
-
recordSend
public void recordSend(int packetId, int uncompressedSize, int compressedSize) - Specified by:
recordSendin interfacePacketStatsRecorder
-
recordReceive
public void recordReceive(int packetId, int uncompressedSize, int compressedSize) - Specified by:
recordReceivein interfacePacketStatsRecorder
-
getEntry
- Specified by:
getEntryin interfacePacketStatsRecorder
-