What is the recommended way to query the state of EPRuntime for pending events

View: New views
1 Messages — Rating Filter:   Alert me  

What is the recommended way to query the state of EPRuntime for pending events

by developer1.mail@gmail.com :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Is there a recommended or clean way to get the state of an EPRuntime/EPStatement prior to calling EPAdministrator.destroyAllStatements() ?

In a highly concurrent environment, I want to ensure that all StatementAwareUpdateListener(s) have fired from all threads prior to destroying statements.

Use Case:

From multiple threads we evaluate events.
Another thread receives a message to "bounce" the engine and reload its EPL.
If any events are queued, do not stop/destroy current statements.


Thanks in advance-
D.