com.espertech.esper.epl.core
Class MethodPollingViewableFactory
java.lang.Object
com.espertech.esper.epl.core.MethodPollingViewableFactory
public class MethodPollingViewableFactory
- extends java.lang.Object
Factory for method-invocation data provider streams.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MethodPollingViewableFactory
public MethodPollingViewableFactory()
createPollMethodView
public static HistoricalEventViewable createPollMethodView(int streamNumber,
MethodStreamSpec methodStreamSpec,
EventAdapterService eventAdapterService,
EPStatementAgentInstanceHandle epStatementAgentInstanceHandle,
MethodResolutionService methodResolutionService,
EngineImportService engineImportService,
SchedulingService schedulingService,
ScheduleBucket scheduleBucket,
ExprEvaluatorContext exprEvaluatorContext)
throws ExprValidationException
- Creates a method-invocation polling view for use as a stream that calls a method, or pulls results from cache.
- Parameters:
streamNumber
- the stream numbermethodStreamSpec
- defines the class and method to calleventAdapterService
- for creating event types and eventsepStatementAgentInstanceHandle
- for time-based callbacksmethodResolutionService
- for resolving classes and importsengineImportService
- for resolving configurationsschedulingService
- for scheduling callbacks in expiry-time based cachesscheduleBucket
- for schedules within the statementexprEvaluatorContext
- expression evaluation context
- Returns:
- pollable view
- Throws:
ExprValidationException
- if the expressions cannot be validated or the method descriptor
has incorrect class and method names, or parameter number and types don't match