Class CachingBuffer

java.lang.Object
com.mewna.catnip.shard.buffer.AbstractBuffer
com.mewna.catnip.shard.buffer.CachingBuffer
All Implemented Interfaces:
EventBuffer

public class CachingBuffer extends AbstractBuffer
An implementation of EventBuffer used for the case of caching all guilds sent in the READY payload, as well as for caching data as it comes over the websocket connection.
Since:
9/9/18.
Author:
amy
  • Constructor Details

    • CachingBuffer

      public CachingBuffer()
  • Method Details

    • buffer

      public void buffer(com.grack.nanojson.JsonObject event)
      Description copied from interface: EventBuffer
      Buffers a single event.
      Parameters:
      event - The event to buffer.