public interface EPStatement extends EPListenable, EPIterable
Modifier and Type | Method and Description |
---|---|
java.lang.annotation.Annotation[] |
getAnnotations()
Returns statement annotations.
|
java.lang.String |
getDeploymentId()
Returns the deployment id.
|
EventType |
getEventType()
Returns the type of events the statement pushes to listeners or returns for iterator.
|
java.lang.String |
getName()
Returns the statement name.
|
java.lang.Object |
getProperty(StatementProperty field)
Returns a statement property value.
|
java.lang.Object |
getSubscriber()
Returns the current subscriber instance that receives statement results.
|
java.lang.Object |
getUserObjectCompileTime()
Returns the application defined user data object associated with the statement at compile time, or null if none
was supplied at time of statement compilation.
|
java.lang.Object |
getUserObjectRuntime()
Returns the application defined user data object associated with the statement at deployment time, or null if none
was supplied at time of deployment.
|
boolean |
isDestroyed()
Returns true if the statement has been undeployed.
|
void |
setSubscriber(java.lang.Object subscriber)
Attaches a subscriber to receive statement results,
or removes a previously set subscriber (by providing a null value).
|
void |
setSubscriber(java.lang.Object subscriber,
java.lang.String methodName)
Attaches a subscriber to receive statement results by calling the method with the provided method name,
or removes a previously set subscriber (by providing a null value).
|
addListener, addListenerWithReplay, getUpdateListeners, removeAllListeners, removeListener
iterator, iterator, safeIterator, safeIterator
EventType getEventType()
java.lang.annotation.Annotation[] getAnnotations()
See the annotation com.espertech.esper.common.client.annotation
package for
available annotations. Application can define their own annotations.
java.lang.String getName()
java.lang.String getDeploymentId()
java.lang.Object getProperty(StatementProperty field)
field
- statement property valueboolean isDestroyed()
void setSubscriber(java.lang.Object subscriber) throws EPSubscriberException
Note: Requires the allow-subscriber compiler options.
Only a single subscriber may be set for a statement. If this method is invoked twice any previously-set subscriber is no longer used.subscriber
- to attach, or null to remove the previously set subscriberEPSubscriberException
- if the subscriber does not provide the methods
needed to receive statement resultsvoid setSubscriber(java.lang.Object subscriber, java.lang.String methodName) throws EPSubscriberException
Note: Requires the allow-subscriber compiler options.
Only a single subscriber may be set for a statement. If this method is invoked twice any previously-set subscriber is no longer used.subscriber
- to attach, or null to remove the previously set subscribermethodName
- the name of the method to invoke, or null for the "update" methodEPSubscriberException
- if the subscriber does not provide the methods
needed to receive statement resultsjava.lang.Object getSubscriber()
java.lang.Object getUserObjectCompileTime()
The user object is a single, unnamed field that is stored with every statement. Applications may put arbitrary objects in this field or a null value.
User objects are passed at time of statement compilation via options.
java.lang.Object getUserObjectRuntime()
The user object is a single, unnamed field that is stored with every statement. Applications may put arbitrary objects in this field or a null value.
User objects are passed at time of deployment via options.