Class GatewayInfoImpl
java.lang.Object
com.mewna.catnip.entity.impl.misc.GatewayInfoImpl
- All Implemented Interfaces:
Entity
,GatewayInfo
,RequiresCatnip
- Since:
- 12/10/18.
- Author:
- amy
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionGatewayInfoImpl
(Catnip catnip, String url, int shards, int totalSessions, int remainingSessions, long resetAfter, boolean valid) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
catnip()
Returns the catnip instance associated with this entity.void
int
remainingSessions
(int remainingSessions) long
resetAfter
(long resetAfter) int
shards()
shards
(int shards) int
totalSessions
(int totalSessions) url()
boolean
valid()
valid
(boolean valid)
-
Constructor Details
-
GatewayInfoImpl
public GatewayInfoImpl() -
GatewayInfoImpl
-
-
Method Details
-
catnip
- Specified by:
catnip
in interfaceRequiresCatnip
-
builder
-
catnip
Description copied from interface:Entity
Returns the catnip instance associated with this entity. -
url
- Specified by:
url
in interfaceGatewayInfo
-
shards
public int shards()- Specified by:
shards
in interfaceGatewayInfo
-
totalSessions
public int totalSessions()- Specified by:
totalSessions
in interfaceGatewayInfo
-
remainingSessions
public int remainingSessions()- Specified by:
remainingSessions
in interfaceGatewayInfo
-
resetAfter
public long resetAfter()- Specified by:
resetAfter
in interfaceGatewayInfo
-
valid
public boolean valid()- Specified by:
valid
in interfaceGatewayInfo
-
url
- Returns:
this
.
-
shards
- Returns:
this
.
-
totalSessions
- Returns:
this
.
-
remainingSessions
- Returns:
this
.
-
resetAfter
- Returns:
this
.
-
valid
- Returns:
this
.
-