T - Type that is going to be processedpublic interface Processor<T extends Event>
Processor interface provides simple hooks for implementations to handle events.| Modifier and Type | Method and Description |
|---|---|
void |
process(ShutdownEvent event)
Method to process
ShutdownEvent. |
void |
process(T event)
Method to process
Event. |
void process(ShutdownEvent event)
ShutdownEvent. This method will be called only once.@Subscribe annotation to the method that is
implementing this method.event - ShutdownEvent to processvoid process(T event)
Event. If your method can process multiple events simultaneously,
then mark your method with @AllowConcurrentEvents annotation.Please make sure
to add @Subscribe annotation to the method that is implementing this method.event - Event to process