public class MVELEventProcessor extends EventProcessor
| Constructor and Description |
|---|
MVELEventProcessor() |
| Modifier and Type | Method and Description |
|---|---|
String |
getScript()
This method returns the script.
|
void |
init()
This method initializes the event processor.
|
Serializable |
process(String source,
Serializable event,
int retriesLeft)
This method processes the supplied event, and optionally
returns a transformed representation to be forwarded to
other processors.
|
void |
setScript(String script)
This method sets the script.
|
close, getAsynchronous, getParameters, getResultHandler, getServices, setAsynchronous, setParameters, setResultHandler, setServicespublic void init()
throws Exception
init in class EventProcessorException - Failed to initializepublic String getScript()
public void setScript(String script)
script - The scriptpublic Serializable process(String source, Serializable event, int retriesLeft) throws Exception
If the event cannot be processed at this time, then an exception should be thrown to initiate a retry. The number of remaining retries is supplied, to enable the processor to take appropriate error reporting action.
process in class EventProcessorsource - The source event processor name that generated the eventevent - The event to processretriesLeft - The number of retries leftException - Failed to process event, requesting retryCopyright © 2013-2015 JBoss by Red Hat. All Rights Reserved.