Class EventCache

java.lang.Object
net.dv8tion.jda.internal.handle.EventCache

public class EventCache extends Object
  • Field Details

    • LOG

      public static final org.slf4j.Logger LOG
    • TIMEOUT_AMOUNT

      public static final long TIMEOUT_AMOUNT
      Sequence 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

      public void playbackCache(EventCache.Type type, long triggerId)
    • size

      public int size()
    • clear

      public void clear()
    • clear

      public void clear(EventCache.Type type, long id)