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, wait
size
protected String name
protected EventProcessorRegistry registry
public AbstractEventSelector(String name, EventProcessorRegistry registry)
public AbstractEventSelector(EventProcessorRegistry registry)
public String getName()
EventSelector
getName
in interface EventSelector
protected 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
EventSelector
nextEvent
in interface EventSelector
input
- the input into the previous eventresponse
- the response from the previous eventException
Copyright © 2014. All rights reserved.