Package net.dv8tion.jda.internal.handle
Class EventCache
java.lang.Object
net.dv8tion.jda.internal.handle.EventCache
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.slf4j.Logger
static final long
Sequence difference after which events will be removed from cache -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
cache
(EventCache.Type type, long triggerId, long responseTotal, DataObject event, CacheConsumer handler) void
clear()
void
clear
(EventCache.Type type, long id) void
playbackCache
(EventCache.Type type, long triggerId) int
size()
void
timeout
(long responseTotal)
-
Field Details
-
LOG
public static final org.slf4j.Logger LOG -
TIMEOUT_AMOUNT
public static final long TIMEOUT_AMOUNTSequence difference after which events will be removed from cache- See Also:
-
-
Constructor Details
-
EventCache
public EventCache()
-
-
Method Details
-
timeout
public void timeout(long responseTotal) -
cache
public void cache(EventCache.Type type, long triggerId, long responseTotal, DataObject event, CacheConsumer handler) -
playbackCache
-
size
public int size() -
clear
public void clear() -
clear
-