public class PollSynchronizerPublisherQueueContainer extends PublisherQueueContainer
PublisherQueueContainer that
offers synchronization between polling the WAN event queues and other
processes such as migration via per-partition locks.
For the time a polling a partition's WAN events is blocked, the
drainRandomWanQueue(int, Collection, int) will not drain any
events.
| Modifier and Type | Method and Description |
|---|---|
void |
drainRandomWanQueue(int partitionId,
Collection<com.hazelcast.wan.WanReplicationEvent> drainTo,
int elementsToDrain)
Removes at most the given number of available elements from a random WAN
queue and for the given partition and adds them to the given collection.
|
clear, drainCacheQueues, drainMapQueues, drainQueues, drainQueues, getContainers, getEventQueue, pollCacheWanEvent, pollMapWanEvent, publishCacheWanEvent, publishMapWanEvent, sizepublic void drainRandomWanQueue(int partitionId,
Collection<com.hazelcast.wan.WanReplicationEvent> drainTo,
int elementsToDrain)
PublisherQueueContainerdrainRandomWanQueue in class PublisherQueueContainerpartitionId - the partition ID for which a random WAN queue should be draineddrainTo - the collection to which to drain events toelementsToDrain - the maximum number of events to drainCopyright © 2020 Hazelcast, Inc.. All Rights Reserved.