public interface StreamFactoryService
We are re-using streams such that views under such streams can be reused for efficient resource use.
Modifier and Type | Method and Description |
---|---|
Pair<EventStream,StatementAgentInstanceLock> |
createStream(int statementId,
FilterSpecCompiled filterSpec,
FilterService filterService,
EPStatementAgentInstanceHandle epStatementAgentInstanceHandle,
boolean isJoin,
AgentInstanceContext agentInstanceContext,
boolean hasOrderBy,
boolean filterWithSameTypeSubselect,
Annotation[] annotations,
boolean stateless,
int streamNum,
boolean isCanIterateUnbound)
Create or reuse existing EventStream instance representing that event filter.
|
void |
destroy()
Destroy the service.
|
void |
dropStream(FilterSpecCompiled filterSpec,
FilterService filterService,
boolean isJoin,
boolean hasOrderBy,
boolean filterWithSameTypeSubselect,
boolean stateless)
Drop the event stream associated with the filter passed in.
|
Pair<EventStream,StatementAgentInstanceLock> createStream(int statementId, FilterSpecCompiled filterSpec, FilterService filterService, EPStatementAgentInstanceHandle epStatementAgentInstanceHandle, boolean isJoin, AgentInstanceContext agentInstanceContext, boolean hasOrderBy, boolean filterWithSameTypeSubselect, Annotation[] annotations, boolean stateless, int streamNum, boolean isCanIterateUnbound)
statementId
- the statement idfilterSpec
- event filter definitionfilterService
- filter service to activate filter if not already activeepStatementAgentInstanceHandle
- is the statements-own handle for use in registering callbacks with servicesisJoin
- is indicatng whether the stream will participate in a join statement, information
necessary for stream reuse and multithreading concernsagentInstanceContext
- expression evaluation contexthasOrderBy
- if the consumer has order-byannotations
- annotationsfilterWithSameTypeSubselect
- whether filter and subselect type matchisCanIterateUnbound
- whether we can iterate unboundstateless
- whether statelessstreamNum
- stream numbervoid dropStream(FilterSpecCompiled filterSpec, FilterService filterService, boolean isJoin, boolean hasOrderBy, boolean filterWithSameTypeSubselect, boolean stateless)
filterSpec
- is the event filter definition associated with the event stream to be droppedfilterService
- to be used to deactivate filter when the last event stream is droppedisJoin
- is indicatng whether the stream will participate in a join statement, information
necessary for stream reuse and multithreading concernshasOrderBy
- if the consumer has an order-by clausefilterWithSameTypeSubselect
- whether filter and subselect event type matchstateless
- whether statelessvoid destroy()