Class UnomiEventPublisher
java.lang.Object
org.apache.unomi.graphql.fetchers.event.UnomiEventPublisher
- All Implemented Interfaces:
EventListenerService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactivate(org.osgi.framework.BundleContext bundleContext) booleanaddListener(org.apache.unomi.graphql.fetchers.event.UnomiEventPublisher.EventPublisherListener listener) booleanWhether or not this listener can handle the specified event.org.reactivestreams.Publisher<CDPEventInterface>org.reactivestreams.Publisher<CDPEventInterface>createPublisher(Condition filterCondition) voidintHandles the specified event.booleanremoveListener(org.apache.unomi.graphql.fetchers.event.UnomiEventPublisher.EventPublisherListener listener) voidsetEventInterfaceRegister(CDPEventInterfaceRegister eventRegister) voidsetPersistenceService(PersistenceService persistenceService)
-
Constructor Details
-
UnomiEventPublisher
public UnomiEventPublisher()
-
-
Method Details
-
activate
public void activate(org.osgi.framework.BundleContext bundleContext) -
deactivate
public void deactivate() -
setPersistenceService
-
setEventInterfaceRegister
-
createPublisher
-
createPublisher
-
canHandle
Description copied from interface:EventListenerServiceWhether or not this listener can handle the specified event.- Specified by:
canHandlein interfaceEventListenerService- Parameters:
event- the event to be handled- Returns:
trueif this listener can handle the specified event,falseotherwise
-
onEvent
Description copied from interface:EventListenerServiceHandles the specified event.- Specified by:
onEventin interfaceEventListenerService- Parameters:
event- the event to be handled- Returns:
- the result of the event handling as combination of
EventServiceflags, to be checked using bitwise AND (&) operator - See Also:
-
addListener
public boolean addListener(org.apache.unomi.graphql.fetchers.event.UnomiEventPublisher.EventPublisherListener listener) -
removeListener
public boolean removeListener(org.apache.unomi.graphql.fetchers.event.UnomiEventPublisher.EventPublisherListener listener)
-