Package org.opennms.netmgt.events.api
Interface EventSubscriptionService
-
- All Known Subinterfaces:
EventIpcManager
- All Known Implementing Classes:
EventIpcManagerDefaultImpl
,MockEventIpcManager
public interface EventSubscriptionService
EventSubscriptionService interface.
- Version:
- $Id: $
- Author:
- ranger
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addEventListener(EventListener listener)
Registers an event listener that is interested in all eventsvoid
addEventListener(EventListener listener, String uei)
Registers an event listener interested in the passed UEIvoid
addEventListener(EventListener listener, Collection<String> ueis)
Registers an event listener interested in the UEIs in the passed listboolean
hasEventListener(String uei)
Checks if there is at least one listener for the given uei.void
removeEventListener(EventListener listener)
Removes a registered event listenervoid
removeEventListener(EventListener listener, String uei)
Removes a registered event listener - the UEI indicates an event the listener is no more interested invoid
removeEventListener(EventListener listener, Collection<String> ueis)
Removes a registered event listener - the UEI list indicates the list of events the listener is no more interested in
-
-
-
Method Detail
-
addEventListener
void addEventListener(EventListener listener)
Registers an event listener that is interested in all events- Parameters:
listener
- aEventListener
object.
-
addEventListener
void addEventListener(EventListener listener, Collection<String> ueis)
Registers an event listener interested in the UEIs in the passed list- Parameters:
listener
- aEventListener
object.ueis
- aCollection
object.
-
addEventListener
void addEventListener(EventListener listener, String uei)
Registers an event listener interested in the passed UEI- Parameters:
listener
- aEventListener
object.uei
- aString
object.
-
removeEventListener
void removeEventListener(EventListener listener)
Removes a registered event listener- Parameters:
listener
- aEventListener
object.
-
removeEventListener
void removeEventListener(EventListener listener, Collection<String> ueis)
Removes a registered event listener - the UEI list indicates the list of events the listener is no more interested in- Parameters:
listener
- aEventListener
object.ueis
- aCollection
object.
-
removeEventListener
void removeEventListener(EventListener listener, String uei)
Removes a registered event listener - the UEI indicates an event the listener is no more interested in- Parameters:
listener
- aEventListener
object.uei
- aString
object.
-
hasEventListener
boolean hasEventListener(String uei)
Checks if there is at least one listener for the given uei.- Parameters:
uei
- the uie to check for- Returns:
true
iff there is at least one listener
-
-