public class PartitionWanEventQueueMap extends ConcurrentHashMap<String,WanReplicationEventQueue> implements com.hazelcast.nio.serialization.DataSerializable
ConcurrentHashMap.KeySetView<K,V>AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
PartitionWanEventQueueMap() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
offerEvent(com.hazelcast.wan.WanReplicationEvent wanReplicationEvent,
String distributedObjectName,
int backupCount)
Publishes the
replicationEvent |
com.hazelcast.wan.WanReplicationEvent |
pollEvent(String distributedObjectName)
Returns a WAN event for the given distributed object or
null if
there is none. |
void |
readData(com.hazelcast.nio.ObjectDataInput in) |
void |
writeData(com.hazelcast.nio.ObjectDataOutput out) |
clear, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, forEach, forEach, forEachEntry, forEachEntry, forEachKey, forEachKey, forEachValue, forEachValue, get, getOrDefault, hashCode, isEmpty, keys, keySet, keySet, mappingCount, merge, newKeySet, newKeySet, put, putAll, putIfAbsent, reduce, reduceEntries, reduceEntries, reduceEntriesToDouble, reduceEntriesToInt, reduceEntriesToLong, reduceKeys, reduceKeys, reduceKeysToDouble, reduceKeysToInt, reduceKeysToLong, reduceToDouble, reduceToInt, reduceToLong, reduceValues, reduceValues, reduceValuesToDouble, reduceValuesToInt, reduceValuesToLong, remove, remove, replace, replace, replaceAll, search, searchEntries, searchKeys, searchValues, size, toString, valuesclonepublic boolean offerEvent(com.hazelcast.wan.WanReplicationEvent wanReplicationEvent,
String distributedObjectName,
int backupCount)
replicationEventdistributedObjectName - the name of the distributed object for
which this event is publishedbackupCount - the number of backup replicas on which this WAN
event is storedwanReplicationEvent - the published replication eventtrue if the element was added to this queue, else
falsepublic com.hazelcast.wan.WanReplicationEvent pollEvent(String distributedObjectName)
null if
there is none.distributedObjectName - the name of the distributed objectpublic void writeData(com.hazelcast.nio.ObjectDataOutput out)
throws IOException
writeData in interface com.hazelcast.nio.serialization.DataSerializableIOExceptionpublic void readData(com.hazelcast.nio.ObjectDataInput in)
throws IOException
readData in interface com.hazelcast.nio.serialization.DataSerializableIOExceptionCopyright © 2020 Hazelcast, Inc.. All Rights Reserved.