Class GatewayClosedImpl
java.lang.Object
com.mewna.catnip.entity.impl.lifecycle.GatewayClosedImpl
- All Implemented Interfaces:
Entity
,GatewayClosed
,RequiresCatnip
- Since:
- 7/26/19.
- Author:
- amy
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionGatewayClosedImpl
(Catnip catnip, ShardInfo shardInfo, int code, String reason) -
Method Summary
-
Constructor Details
-
GatewayClosedImpl
public GatewayClosedImpl() -
GatewayClosedImpl
-
-
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 interfaceGatewayClosed
- Returns:
- Information about the shard whose gateway websocket closed.
-
code
public int code()- Specified by:
code
in interfaceGatewayClosed
- Returns:
- The websocket close code.
-
reason
- Specified by:
reason
in interfaceGatewayClosed
- Returns:
- The websocket close reason, if present.
-
shardInfo
- Returns:
this
.
-
code
- Returns:
this
.
-
reason
- Returns:
this
.
-