public class EventQuerySource extends Object implements SubscriptionSource<String>, EventListener
| Constructor and Description |
|---|
EventQuerySource(String id,
EventQuery query) |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(Collection<SubscriptionInformation<String>> listeners) |
void |
handleEvent(List<Event> event)
Handle the provided events
|
void |
removeListener(Collection<SubscriptionInformation<String>> listeners) |
boolean |
supportsListener(SubscriptionInformation<String> information)
Validate if the provided subcription information can bind to this
subscription source
|
public EventQuerySource(String id, EventQuery query)
public void addListener(Collection<SubscriptionInformation<String>> listeners)
addListener in interface SubscriptionSource<String>public void removeListener(Collection<SubscriptionInformation<String>> listeners)
removeListener in interface SubscriptionSource<String>public boolean supportsListener(SubscriptionInformation<String> information)
SubscriptionSourcesupportsListener in interface SubscriptionSource<String>information - The information to checktrue if the listener can bind to this event source.
In this case the SubscriptionSource.addListener(Collection) method may not
reject the listener.public void handleEvent(List<Event> event)
EventListenerhandleEvent in interface EventListenerevent - the events to handleCopyright © 2016 Eclipse NeoSCADA Project. All rights reserved.