public class PartitionWanEventContainer extends Object
| Constructor and Description |
|---|
PartitionWanEventContainer() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
PartitionWanEventQueueMap |
getCacheEventQueueMapByBackupCount(int backupCount) |
PartitionWanEventQueueMap |
getMapEventQueueMapByBackupCount(int backupCount) |
com.hazelcast.wan.WanReplicationEvent |
pollCacheWanEvent(String cacheName)
Return the head of the wan event queue for the
cacheName |
com.hazelcast.wan.WanReplicationEvent |
pollMapWanEvent(String mapName)
Return the head of the wan event queue for the
mapName |
com.hazelcast.wan.WanReplicationEvent |
pollRandomWanEvent() |
boolean |
publishCacheWanEvent(String cacheName,
com.hazelcast.wan.WanReplicationEvent wanReplicationEvent) |
boolean |
publishMapWanEvent(String mapName,
com.hazelcast.wan.WanReplicationEvent wanReplicationEvent)
Publishes the
replicationEvent for the given mapName map on the partition partitionId |
int |
size() |
public boolean publishMapWanEvent(String mapName, com.hazelcast.wan.WanReplicationEvent wanReplicationEvent)
replicationEvent for the given mapName map on the partition partitionIdmapName - the name of the map for which the event is publishedwanReplicationEvent - the published replication eventtrue if the element was added to this queue, else falsepublic com.hazelcast.wan.WanReplicationEvent pollMapWanEvent(String mapName)
mapNamemapName - the map for which an event is polledpublic com.hazelcast.wan.WanReplicationEvent pollCacheWanEvent(String cacheName)
cacheNamecacheName - the cache for which an event is polledpublic com.hazelcast.wan.WanReplicationEvent pollRandomWanEvent()
public int size()
public PartitionWanEventQueueMap getMapEventQueueMapByBackupCount(int backupCount)
public PartitionWanEventQueueMap getCacheEventQueueMapByBackupCount(int backupCount)
public boolean publishCacheWanEvent(String cacheName, com.hazelcast.wan.WanReplicationEvent wanReplicationEvent)
public void clear()
Copyright © 2020 Hazelcast, Inc.. All Rights Reserved.