|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface StreamFactoryService
Service on top of the filter service for reuseing filter callbacks and their associated EventStream instances. Same filter specifications (equal) do not need to be added to the filter service twice and the EventStream instance that is the stream of events for that filter can be reused.
We are re-using streams such that views under such streams can be reused for efficient resource use.
Method Summary | |
---|---|
Pair<EventStream,ManagedLock> |
createStream(FilterSpecCompiled filterSpec,
FilterService filterService,
EPStatementHandle epStatementHandle,
boolean isJoin)
Create or reuse existing EventStream instance representing that event filter. |
void |
destroy()
Destroy the service. |
void |
dropStream(FilterSpecCompiled filterSpec,
FilterService filterService,
boolean isJoin)
Drop the event stream associated with the filter passed in. |
Method Detail |
---|
Pair<EventStream,ManagedLock> createStream(FilterSpecCompiled filterSpec, FilterService filterService, EPStatementHandle epStatementHandle, boolean isJoin)
filterSpec
- event filter definitionfilterService
- filter service to activate filter if not already activeepStatementHandle
- 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 concerns
void dropStream(FilterSpecCompiled filterSpec, FilterService filterService, boolean isJoin)
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 concernsvoid destroy()
|
© 2007 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |