public interface EPStatement extends EPListenable, EPIterable
Modifier and Type | Method and Description |
---|---|
Annotation[] |
getAnnotations()
Returns statement annotations.
|
String |
getDeploymentId()
Returns the deployment id.
|
com.espertech.esper.common.client.EventType |
getEventType()
Returns the type of events the statement pushes to listeners or returns for iterator.
|
String |
getName()
Returns the statement name.
|
Object |
getProperty(com.espertech.esper.common.client.util.StatementProperty field)
Returns a statement property value.
|
Object |
getSubscriber()
Returns the current subscriber instance that receives statement results.
|
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.
|
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(Object subscriber)
Attaches a subscriber to receive statement results,
or removes a previously set subscriber (by providing a null value).
|
void |
setSubscriber(Object subscriber,
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
com.espertech.esper.common.client.EventType getEventType()
Annotation[] getAnnotations()
See the annotation com.espertech.esper.common.client.annotation
package for
available annotations. Application can define their own annotations.
String getName()
String getDeploymentId()
Object getProperty(com.espertech.esper.common.client.util.StatementProperty field)
field
- statement property valueboolean isDestroyed()
void setSubscriber(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(Object subscriber, 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 resultsObject getSubscriber()
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.
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.
Copyright © 2005–2018. All rights reserved.