Class TestEventContext

java.lang.Object
gg.xp.xivsupport.events.TestEventContext
All Implemented Interfaces:
EventContext

public class TestEventContext extends Object implements EventContext
  • Constructor Details

    • TestEventContext

      public TestEventContext()
  • Method Details

    • accept

      public void accept(Event event)
      Description copied from interface: EventContext
      Accept an event for immediate processing
      Specified by:
      accept in interface EventContext
      Parameters:
      event - The event
    • enqueue

      public void enqueue(Event event)
      Description copied from interface: EventContext
      Accept an event for processing as a normal queue event
      Specified by:
      enqueue in interface EventContext
      Parameters:
      event - The event
    • getStateInfo

      public StateStore getStateInfo()
      Description copied from interface: EventContext
      Return an object conveying state information

      The expectation is that this would be a map of classes to instances of them, so that, e.g. anything related to a particular implementation can just attach it here, rather than having to plumb more generics through the entire system.

      Specified by:
      getStateInfo in interface EventContext
      Returns:
      the state store
    • getAccepted

      public List<Event> getAccepted()
    • getEnqueued

      public List<Event> getEnqueued()