Class UnomiEventPublisher
- java.lang.Object
-
- org.apache.unomi.graphql.fetchers.event.UnomiEventPublisher
-
- All Implemented Interfaces:
EventListenerService
public class UnomiEventPublisher extends Object implements EventListenerService
-
-
Constructor Summary
Constructors Constructor Description UnomiEventPublisher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactivate(org.osgi.framework.BundleContext bundleContext)booleanaddListener(org.apache.unomi.graphql.fetchers.event.UnomiEventPublisher.EventPublisherListener listener)booleancanHandle(Event event)Whether or not this listener can handle the specified event.org.reactivestreams.Publisher<CDPEventInterface>createPublisher()org.reactivestreams.Publisher<CDPEventInterface>createPublisher(Condition filterCondition)voiddeactivate()intonEvent(Event event)Handles the specified event.booleanremoveListener(org.apache.unomi.graphql.fetchers.event.UnomiEventPublisher.EventPublisherListener listener)voidsetEventInterfaceRegister(CDPEventInterfaceRegister eventRegister)voidsetPersistenceService(PersistenceService persistenceService)
-
-
-
Method Detail
-
activate
public void activate(org.osgi.framework.BundleContext bundleContext)
-
deactivate
public void deactivate()
-
setPersistenceService
public void setPersistenceService(PersistenceService persistenceService)
-
setEventInterfaceRegister
public void setEventInterfaceRegister(CDPEventInterfaceRegister eventRegister)
-
createPublisher
public org.reactivestreams.Publisher<CDPEventInterface> createPublisher()
-
createPublisher
public org.reactivestreams.Publisher<CDPEventInterface> createPublisher(Condition filterCondition)
-
canHandle
public boolean canHandle(Event event)
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
public int onEvent(Event event)
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:
EventService.NO_CHANGE,EventService.PROFILE_UPDATED,EventService.SESSION_UPDATED
-
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)
-
-