Class HighWebsocketLatencyImpl
java.lang.Object
com.mewna.catnip.entity.impl.lifecycle.HighWebsocketLatencyImpl
- All Implemented Interfaces:
Entity
,HighWebsocketLatency
,RequiresCatnip
public class HighWebsocketLatencyImpl
extends Object
implements HighWebsocketLatency, RequiresCatnip
- Since:
- 8/19/19.
- Author:
- amy
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
HighWebsocketLatencyImpl
public HighWebsocketLatencyImpl() -
HighWebsocketLatencyImpl
-
-
Method Details
-
catnip
- Specified by:
catnip
in interfaceRequiresCatnip
-
builder
-
catnip
Description copied from interface:Entity
Returns the catnip instance associated with this entity. -
shardInfo
- Specified by:
shardInfo
in interfaceHighWebsocketLatency
- Returns:
- Information about which shard is experiencing high latency.
-
latency
public long latency()- Specified by:
latency
in interfaceHighWebsocketLatency
- Returns:
- The latency of the shard, in milliseconds.
-
shardInfo
- Returns:
this
.
-
latency
- Returns:
this
.
-