public final class LocalEventDispatcher extends Object implements StripedRunnable, TimeoutRunnable
StripedRunnable
responsible of processing the event
on a thread defined by the orderKey
.
Processes the event by dispatching it on the responsible EventPublishingService
together with the listener
responsible for the event.Constructor and Description |
---|
LocalEventDispatcher(EventServiceImpl eventService,
String serviceName,
Object event,
Object listener,
int orderKey,
long timeoutMs) |
Modifier and Type | Method and Description |
---|---|
Object |
getEvent() |
int |
getKey() |
String |
getServiceName() |
long |
getTimeout() |
TimeUnit |
getTimeUnit() |
void |
run() |
public LocalEventDispatcher(EventServiceImpl eventService, String serviceName, Object event, Object listener, int orderKey, long timeoutMs)
public long getTimeout()
getTimeout
in interface TimeoutRunnable
public TimeUnit getTimeUnit()
getTimeUnit
in interface TimeoutRunnable
public int getKey()
getKey
in interface StripedRunnable
public String getServiceName()
public Object getEvent()
Copyright © 2017 Hazelcast, Inc.. All Rights Reserved.