public abstract class AbstractEventSelector extends Object implements EventSelector
| Modifier and Type | Field and Description |
|---|---|
protected String |
name |
protected EventProcessorRegistry |
registry |
| Constructor and Description |
|---|
AbstractEventSelector(EventProcessorRegistry registry) |
AbstractEventSelector(String name,
EventProcessorRegistry registry) |
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
The event selector's name, may be null.
|
protected abstract EventSuccessor |
next(Object input,
Object response)
Implemented by subclasses to select a successor event.
|
Event |
nextEvent(Object input,
Object response)
Select next event, which may be "noop" indicating that the event processing should end.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsizeprotected String name
protected EventProcessorRegistry registry
public AbstractEventSelector(String name, EventProcessorRegistry registry)
public AbstractEventSelector(EventProcessorRegistry registry)
public String getName()
EventSelectorgetName in interface EventSelectorprotected abstract EventSuccessor next(Object input, Object response)
input - the input to the previous eventresponse - the response from the previous eventpublic Event nextEvent(Object input, Object response) throws Exception
EventSelectornextEvent in interface EventSelectorinput - the input into the previous eventresponse - the response from the previous eventExceptionCopyright © 2014. All rights reserved.