com.espertech.esper.client
Interface EPStatementStateListener


public interface EPStatementStateListener

Interface for receiving callback events pertaining to statement creation and statement state transitions.

Implementations must not block the operation.


Method Summary
 void onStatementCreate(EPServiceProvider serviceProvider, EPStatement statement)
          Called to indicate that a new statement has been created in stopped state.
 void onStatementStateChange(EPServiceProvider serviceProvider, EPStatement statement)
          Called to indicate that a statement has changed state.
 

Method Detail

onStatementCreate

void onStatementCreate(EPServiceProvider serviceProvider,
                       EPStatement statement)
Called to indicate that a new statement has been created in stopped state.

The #onStatementStateChange method is also invoked upon statement start.

Parameters:
serviceProvider - the service provider instance under which the statement has been created
statement - the new statement

onStatementStateChange

void onStatementStateChange(EPServiceProvider serviceProvider,
                            EPStatement statement)
Called to indicate that a statement has changed state.

Parameters:
serviceProvider - the service provider instance under which the statement has been created
statement - the statement that changed state

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com