|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface OverloadDispatcher
This interface defines methods for dispatching input and output events to the most relevant methods of the processing elements.
onEvent
and onTrigger
methods
may be overloaded with different subtypes of Event
parameters.
Methods defined in this interface dispatch an event to the method
which is the best match according to the runtime type of the event.
Example: consider PE of type ExamplePE extends ProcessingElement
that defines methods:
onEvent(EventA event)
onEvent(EventB event)
Then:
EventA extends Event
is received on this PE, it will be handled by method onEvent(EventA event)
EventB extends EventA
is received on this PE, it will be handled by method onEvent(EventB event)
Implementations of this interface are typically generated at runtime.
Method Summary | |
---|---|
void |
dispatchEvent(ProcessingElement pe,
Event event)
|
void |
dispatchTrigger(ProcessingElement pe,
Event event)
|
Method Detail |
---|
void dispatchEvent(ProcessingElement pe, Event event)
void dispatchTrigger(ProcessingElement pe, Event event)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |