Class InternalEventRouterImpl
java.lang.Object
com.espertech.esper.common.internal.context.util.InternalEventRouterImpl
- All Implemented Interfaces:
InternalEventRouter
Routing implementation that allows to pre-process events.
-
Constructor Summary
ConstructorDescriptionInternalEventRouterImpl
(EventBeanTypedEventFactory eventBeanTypedEventFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addPreprocessing
(InternalEventRouterDesc internalEventRouterDesc, InternalRoutePreprocessView outputView, StatementContext statementContext, boolean hasSubselect) boolean
Return true to indicate that there is pre-processing to take place.void
movePreprocessing
(StatementContext statementContext, InternalEventRouter internalEventRouter) preprocess
(EventBean theEvent, ExprEvaluatorContext runtimeFilterAndDispatchTimeContext, InstrumentationCommon instrumentation) Pre-process the event.void
removePreprocessing
(EventType eventType, InternalEventRouterDesc desc) void
route
(EventBean theEvent, AgentInstanceContext agentInstanceContext, boolean addToFront, int precedence) Route the event such that the event is processed as required.void
route
(EventBean theEvent, EPStatementHandle statementHandle, InternalEventRouteDest routeDest, ExprEvaluatorContext exprEvaluatorContext, boolean addToFront, int precedence) void
setInsertIntoListener
(InsertIntoListener insertIntoListener)
-
Constructor Details
-
InternalEventRouterImpl
-
-
Method Details
-
isHasPreprocessing
public boolean isHasPreprocessing()Return true to indicate that there is pre-processing to take place.- Specified by:
isHasPreprocessing
in interfaceInternalEventRouter
- Returns:
- preprocessing indicator
-
preprocess
public EventBean preprocess(EventBean theEvent, ExprEvaluatorContext runtimeFilterAndDispatchTimeContext, InstrumentationCommon instrumentation) Pre-process the event.- Specified by:
preprocess
in interfaceInternalEventRouter
- Parameters:
theEvent
- to preprocessruntimeFilterAndDispatchTimeContext
- expression evaluation contextinstrumentation
- instrumentation- Returns:
- preprocessed event
-
setInsertIntoListener
- Specified by:
setInsertIntoListener
in interfaceInternalEventRouter
-
route
public void route(EventBean theEvent, AgentInstanceContext agentInstanceContext, boolean addToFront, int precedence) Description copied from interface:InternalEventRouter
Route the event such that the event is processed as required.- Specified by:
route
in interfaceInternalEventRouter
- Parameters:
theEvent
- to routeagentInstanceContext
- agentInstanceContextaddToFront
- indicator whether to add to front queueprecedence
- event precedence
-
route
public void route(EventBean theEvent, EPStatementHandle statementHandle, InternalEventRouteDest routeDest, ExprEvaluatorContext exprEvaluatorContext, boolean addToFront, int precedence) -
addPreprocessing
public void addPreprocessing(InternalEventRouterDesc internalEventRouterDesc, InternalRoutePreprocessView outputView, StatementContext statementContext, boolean hasSubselect) - Specified by:
addPreprocessing
in interfaceInternalEventRouter
-
removePreprocessing
- Specified by:
removePreprocessing
in interfaceInternalEventRouter
-
movePreprocessing
public void movePreprocessing(StatementContext statementContext, InternalEventRouter internalEventRouter)
-