public class UnomiEventPublisher extends Object implements EventListenerService
Constructor and Description |
---|
UnomiEventPublisher() |
Modifier and Type | Method and Description |
---|---|
void |
activate(org.osgi.framework.BundleContext bundleContext) |
boolean |
addListener(org.apache.unomi.graphql.fetchers.event.UnomiEventPublisher.EventPublisherListener listener) |
boolean |
canHandle(Event event)
Whether or not this listener can handle the specified event.
|
org.reactivestreams.Publisher<CDPEventInterface> |
createPublisher() |
org.reactivestreams.Publisher<CDPEventInterface> |
createPublisher(Condition filterCondition) |
void |
deactivate() |
int |
onEvent(Event event)
Handles the specified event.
|
boolean |
removeListener(org.apache.unomi.graphql.fetchers.event.UnomiEventPublisher.EventPublisherListener listener) |
void |
setEventInterfaceRegister(CDPEventInterfaceRegister eventRegister) |
void |
setPersistenceService(PersistenceService persistenceService) |
public void activate(org.osgi.framework.BundleContext bundleContext)
public void deactivate()
public void setPersistenceService(PersistenceService persistenceService)
public void setEventInterfaceRegister(CDPEventInterfaceRegister eventRegister)
public org.reactivestreams.Publisher<CDPEventInterface> createPublisher()
public org.reactivestreams.Publisher<CDPEventInterface> createPublisher(Condition filterCondition)
public boolean canHandle(Event event)
EventListenerService
canHandle
in interface EventListenerService
event
- the event to be handledtrue
if this listener can handle the specified event, false
otherwisepublic int onEvent(Event event)
EventListenerService
onEvent
in interface EventListenerService
event
- the event to be handledEventService
flags, to be checked using bitwise AND (&) operatorEventService.NO_CHANGE
,
EventService.PROFILE_UPDATED
,
EventService.SESSION_UPDATED
public boolean addListener(org.apache.unomi.graphql.fetchers.event.UnomiEventPublisher.EventPublisherListener listener)
public boolean removeListener(org.apache.unomi.graphql.fetchers.event.UnomiEventPublisher.EventPublisherListener listener)
Copyright © 2014–2023 Apache Software Foundation. All rights reserved.