public interface LensEventService extends LensService
Modifier and Type | Method and Description |
---|---|
<T extends LensEvent> |
addListenerForType(LensEventListener<? super T> listener,
Class<T> eventType)
Add a listener for the given event type.
|
<T extends LensEvent> |
getListeners(Class<T> changeType)
Get all listeners of a particular type.
|
void |
notifyEvent(LensEvent event)
Process an event, and notify all listeners interested in this event.
|
<T extends LensEvent> |
removeListener(LensEventListener<? super T> listener)
Remove this listener instance from all subscribed event types.
|
<T extends LensEvent> |
removeListenerForType(LensEventListener<? super T> listener,
Class<T> eventType)
Remove listener for a given event type.
|
getHealthStatus
static final String NAME
<T extends LensEvent> void addListenerForType(LensEventListener<? super T> listener, Class<T> eventType)
listener
- the listenereventType
- the event type<T extends LensEvent> void removeListenerForType(LensEventListener<? super T> listener, Class<T> eventType)
listener
- the listenereventType
- the event type<T extends LensEvent> void removeListener(LensEventListener<? super T> listener)
listener
- the listenervoid notifyEvent(LensEvent event) throws LensException
event
- objectLensException
- the lens exception<T extends LensEvent> Collection<LensEventListener> getListeners(Class<T> changeType)
changeType
- the change typeCopyright © 2014–2016 Apache Software Foundation. All rights reserved.