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
pollRandomWanEvent(int) returns null instead of blocking the poller
thread to enable that the poller thread may continue with other not
blocked partitions.| Modifier and Type | Method and Description |
|---|---|
com.hazelcast.wan.WanReplicationEvent |
pollRandomWanEvent(int partitionId)
Returns a random replication event for the
partitionId. |
clear, drainCacheQueues, drainMapQueues, drainQueues, getPublisherEventQueue, getPublisherEventQueueMap, pollCacheWanEvent, pollMapWanEvent, publishCacheWanEvent, publishMapWanEvent, sizepublic com.hazelcast.wan.WanReplicationEvent pollRandomWanEvent(int partitionId)
PublisherQueueContainerpartitionId.pollRandomWanEvent in class PublisherQueueContainerpartitionId - the partition ID for the replication eventCopyright © 2020 Hazelcast, Inc.. All Rights Reserved.