public interface ClusterEventManager<K,V>
Modifier and Type | Method and Description |
---|---|
void |
addEvents(Address target,
UUID identifier,
Collection<ClusterEvent<K,V>> events,
boolean sync)
Adds additional cluster events that need to be sent remotely for an event originating locally.
|
void |
dropEvents()
Drops and ignores all previously added events on this thread.
|
void |
sendEvents()
Sends all previously added events on this thread
|
void addEvents(Address target, UUID identifier, Collection<ClusterEvent<K,V>> events, boolean sync)
sendEvents()
is invoked.
These events are gathered on a per thread basis and batched to reduce number of RPCs required.target
- The target node this event was meant foridentifier
- The cluster listener that is identified for these eventsevents
- The events that were generatedsync
- Whether these events need to be sent synchronously or notvoid sendEvents() throws CacheException
CacheException
void dropEvents()
Copyright © 2021 JBoss, a division of Red Hat. All rights reserved.