org.apache.s4.core.gen
Interface OverloadDispatcher


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:

Then:

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

dispatchEvent

void dispatchEvent(ProcessingElement pe,
                   Event event)

dispatchTrigger

void dispatchTrigger(ProcessingElement pe,
                     Event event)