Package gg.xp.reevent.events
Interface EventContext
- All Known Implementing Classes:
TestEventContext
public interface EventContext
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Accept an event for immediate processingvoid
Accept an event for processing as a normal queue eventReturn an object conveying state information
-
Method Details
-
accept
Accept an event for immediate processing- Parameters:
event
- The event
-
enqueue
Accept an event for processing as a normal queue event- Parameters:
event
- The event
-
getStateInfo
StateStore getStateInfo()Return an object conveying state informationThe 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
-