public class EPStatementListenerSet extends Object
The collection of update listeners is based on copy-on-write: When the runtimedispatches events to a set of listeners, then while iterating through the set there may be listeners added or removed (the listener may remove itself). Additionally, events may be dispatched by multiple threads to the same listener.
Constructor and Description |
---|
EPStatementListenerSet()
Ctor.
|
EPStatementListenerSet(UpdateListener[] listeners) |
Modifier and Type | Method and Description |
---|---|
void |
addListener(UpdateListener listener)
Add a listener to the statement.
|
UpdateListener[] |
getListeners()
Returns the set of listeners to the statement.
|
Object |
getSubscriber()
Returns the subscriber instance.
|
String |
getSubscriberMethodName() |
void |
removeAllListeners()
Remove all listeners to a statement.
|
void |
removeListener(UpdateListener listener)
Remove a listeners to a statement.
|
void |
setListeners(EPStatementListenerSet listenerSet)
Set the update listener set to use.
|
void |
setSubscriber(Object subscriber,
String methodName)
Sets a subscriber instance.
|
public EPStatementListenerSet()
public EPStatementListenerSet(UpdateListener[] listeners)
public UpdateListener[] getListeners()
public void setListeners(EPStatementListenerSet listenerSet)
listenerSet
- a collection of update listenerspublic void addListener(UpdateListener listener)
listener
- to addpublic void removeListener(UpdateListener listener)
listener
- to removepublic void removeAllListeners()
public void setSubscriber(Object subscriber, String methodName)
subscriber
- is the subscriber to setmethodName
- method namepublic Object getSubscriber()
public String getSubscriberMethodName()
Copyright © 2005–2019. All rights reserved.