public class EventQuerySource extends java.lang.Object implements SubscriptionSource, EventListener
| Constructor and Description |
|---|
EventQuerySource(java.lang.String id,
EventQuery query) |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(java.util.Collection<SubscriptionInformation> listeners) |
void |
handleEvent(java.util.List<Event> event)
Handle the provided events
|
void |
removeListener(java.util.Collection<SubscriptionInformation> listeners) |
boolean |
supportsListener(SubscriptionInformation information)
Validate if the provided subcription information can bind to this subscription source
|
public EventQuerySource(java.lang.String id,
EventQuery query)
public void addListener(java.util.Collection<SubscriptionInformation> listeners)
addListener in interface SubscriptionSourcepublic void removeListener(java.util.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(java.util.List<Event> event)
EventListenerhandleEvent in interface EventListenerevent - the events to handle
Copyright (c) IBH SYSTEMS GmbH and others 2010, 2013.
All rights reserved. This program and the accompanying materials
are made available under the terms of the
Eclipse Public License v1.0