Class EventSubscriptionServiceImpl
- java.lang.Object
-
- org.opennms.features.apilayer.events.EventSubscriptionServiceImpl
-
- All Implemented Interfaces:
org.opennms.integration.api.v1.events.EventSubscriptionService
public class EventSubscriptionServiceImpl extends Object implements org.opennms.integration.api.v1.events.EventSubscriptionService
AnEventSubscriptionService
that accepts EventListener implementations from the API, wraps these in an adapter and delegates them to them to the real service implementation.
-
-
Constructor Summary
Constructors Constructor Description EventSubscriptionServiceImpl(EventSubscriptionService delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addEventListener(org.opennms.integration.api.v1.events.EventListener listener)
void
addEventListener(org.opennms.integration.api.v1.events.EventListener listener, String uei)
void
addEventListener(org.opennms.integration.api.v1.events.EventListener listener, Collection<String> ueis)
boolean
hasEventListener(String uei)
void
removeEventListener(org.opennms.integration.api.v1.events.EventListener listener)
void
removeEventListener(org.opennms.integration.api.v1.events.EventListener listener, String uei)
void
removeEventListener(org.opennms.integration.api.v1.events.EventListener listener, Collection<String> ueis)
-
-
-
Constructor Detail
-
EventSubscriptionServiceImpl
public EventSubscriptionServiceImpl(EventSubscriptionService delegate)
-
-
Method Detail
-
addEventListener
public void addEventListener(org.opennms.integration.api.v1.events.EventListener listener)
- Specified by:
addEventListener
in interfaceorg.opennms.integration.api.v1.events.EventSubscriptionService
-
addEventListener
public void addEventListener(org.opennms.integration.api.v1.events.EventListener listener, Collection<String> ueis)
- Specified by:
addEventListener
in interfaceorg.opennms.integration.api.v1.events.EventSubscriptionService
-
addEventListener
public void addEventListener(org.opennms.integration.api.v1.events.EventListener listener, String uei)
- Specified by:
addEventListener
in interfaceorg.opennms.integration.api.v1.events.EventSubscriptionService
-
removeEventListener
public void removeEventListener(org.opennms.integration.api.v1.events.EventListener listener)
- Specified by:
removeEventListener
in interfaceorg.opennms.integration.api.v1.events.EventSubscriptionService
-
removeEventListener
public void removeEventListener(org.opennms.integration.api.v1.events.EventListener listener, Collection<String> ueis)
- Specified by:
removeEventListener
in interfaceorg.opennms.integration.api.v1.events.EventSubscriptionService
-
removeEventListener
public void removeEventListener(org.opennms.integration.api.v1.events.EventListener listener, String uei)
- Specified by:
removeEventListener
in interfaceorg.opennms.integration.api.v1.events.EventSubscriptionService
-
hasEventListener
public boolean hasEventListener(String uei)
- Specified by:
hasEventListener
in interfaceorg.opennms.integration.api.v1.events.EventSubscriptionService
-
-