public interface EPStatementSPI extends EPStatement
Modifier and Type | Method and Description |
---|---|
String |
getExpressionNoAnnotations()
Returns the statements expression without annotations.
|
EPStatementListenerSet |
getListenerSet()
Returns the current set of listeners for read-only operations.
|
Viewable |
getParentView()
Returns the parent view.
|
StatementContext |
getStatementContext()
Returns the statement context.
|
int |
getStatementId()
Returns the statement id.
|
StatementMetadata |
getStatementMetadata()
Returns additional metadata about a statement.
|
boolean |
isNameProvided()
True if an explicit statement name has been provided, false if the statement name is system-generated.
|
void |
setCurrentState(EPStatementState currentState,
long timeLastStateChange)
Set statement state.
|
void |
setListeners(EPStatementListenerSet listeners,
boolean isRecovery)
Sets the statement listeners.
|
void |
setParentView(Viewable viewable)
Sets the parent view.
|
void |
setServiceIsolated(String serviceIsolated)
Set the statement's isolated service name, or null to clear.
|
addListenerWithReplay, destroy, getAnnotations, getName, getServiceIsolated, getState, getSubscriber, getText, getTimeLastStateChange, getUserObject, isDestroyed, isPattern, isStarted, isStopped, iterator, safeIterator, setSubscriber, setSubscriber, start, stop
addListener, addListener, getStatementAwareListeners, getUpdateListeners, removeAllListeners, removeListener, removeListener
getEventType, iterator, safeIterator
int getStatementId()
void setServiceIsolated(String serviceIsolated)
serviceIsolated
- name of isolated serviceString getExpressionNoAnnotations()
EPStatementListenerSet getListenerSet()
void setListeners(EPStatementListenerSet listeners, boolean isRecovery)
Care must be taken in the use of this method as unsynchronized modification to the listeners of a statement can yield problems.
listeners
- setisRecovery
- whether we are recoveringvoid setCurrentState(EPStatementState currentState, long timeLastStateChange)
currentState
- new current statetimeLastStateChange
- the timestamp the statement changed statevoid setParentView(Viewable viewable)
viewable
- is the statement viewableViewable getParentView()
StatementMetadata getStatementMetadata()
StatementContext getStatementContext()
boolean isNameProvided()