|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface EventHandlerIF
An EventHandlerIF represents an event handler - the basic unit of computation in SandStorm. This is the basic interface which all application modules implement.
| Method Summary | |
|---|---|
void |
destroy()
Called when an event handler is destroyed. |
void |
handleEvent(QueueElementIF elem)
Handle the event corresponding to the given QueueElementIF. |
void |
handleEvents(QueueElementIF[] elemarr)
Handle the events corresponding to the given QueueElementIF array. |
void |
init(ConfigDataIF config)
Called when an event handler is initialized. |
| Method Detail |
|---|
void handleEvent(QueueElementIF elem)
throws EventHandlerException
EventHandlerException - The application may throw an
exception to indicate an error condition during event processing.
void handleEvents(QueueElementIF[] elemarr)
throws EventHandlerException
EventHandlerException - The application may throw an
exception to indicate an error condition during event processing.
void init(ConfigDataIF config)
throws java.lang.Exception
config - The set of configuration parameters for the stage.
java.lang.Exception - The EventHandler can indicate an
error to the runtime during initialization by throwing an
Exception.
void destroy()
throws java.lang.Exception
java.lang.Exception - The EventHandler can indicate an
error to the runtime during shutdown by throwing an
Exception.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||