onEvent
and onTrigger
methods may be overloaded with different subtypes of {@link 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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|