Interface EventContext

All Known Implementing Classes:
TestEventContext

public interface EventContext
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    accept(Event event)
    Accept an event for immediate processing
    void
    enqueue(Event event)
    Accept an event for processing as a normal queue event
    Return an object conveying state information
  • Method Details

    • accept

      void accept(Event event)
      Accept an event for immediate processing
      Parameters:
      event - The event
    • enqueue

      void enqueue(Event event)
      Accept an event for processing as a normal queue event
      Parameters:
      event - The event
    • getStateInfo

      StateStore getStateInfo()
      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.

      Returns:
      the state store