Interface CEPEsperProcessor.ProcessingDelegate
-
- All Known Implementing Classes:
CEPEsperProcessor.ExternalTimeDelegate,CEPEsperProcessor.RegularDelegate
- Enclosing class:
- CEPEsperProcessor
private static interface CEPEsperProcessor.ProcessingDelegateBasic interface to describe a data flow processing delegate. This is going to be used by both the "straight-through to Esper" delegate and by the {#link ExternalTimeDelegate} that will behave differently in when external time is being used.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcancelRequest(DataFlowID inFlowID, RequestID inRequestID)Cancels all existing and pending requests.voidpreProcessData(DataFlowID inFlowID, Object inData)Invoked to allow every delegate to pre-process data before it is delivered to the esper runtime.voidprocessRequest(String[] inStmts, DataEmitterSupport inSupport)Sends the request to be processed.
-
-
-
Method Detail
-
processRequest
void processRequest(String[] inStmts, DataEmitterSupport inSupport) throws RequestDataException
Sends the request to be processed.- Parameters:
inStmts- the query statements.inSupport- the emitter support to emit data.- Throws:
RequestDataException- if there were errors processing the request.
-
cancelRequest
void cancelRequest(DataFlowID inFlowID, RequestID inRequestID)
Cancels all existing and pending requests.- Parameters:
inFlowID- the flowID of the data flow to cancel.inRequestID- the requestID of the data flow to cancel.
-
preProcessData
void preProcessData(DataFlowID inFlowID, Object inData) throws StopDataFlowException
Invoked to allow every delegate to pre-process data before it is delivered to the esper runtime.- Parameters:
inFlowID- the data flowID.inData- the received data.- Throws:
StopDataFlowException- if the data flow should be stopped.
-
-