public class EventQuerySource extends Object implements SubscriptionSource, EventListener
| Constructor and Description |
|---|
EventQuerySource(String id,
EventQuery query) |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(Collection<SubscriptionInformation> listeners) |
void |
handleEvent(List<Event> event)
Handle the provided events
|
void |
removeListener(Collection<SubscriptionInformation> listeners) |
boolean |
supportsListener(SubscriptionInformation information)
Validate if the provided subcription information can bind to this subscription source
|
public EventQuerySource(String id, EventQuery query)
public void addListener(Collection<SubscriptionInformation> listeners)
addListener in interface SubscriptionSourcepublic void removeListener(Collection<SubscriptionInformation> listeners)
removeListener in interface SubscriptionSourcepublic boolean supportsListener(SubscriptionInformation information)
SubscriptionSourcesupportsListener in interface SubscriptionSourceinformation - 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 handle