public class DefaultAccumulatorInfoSupplier extends Object implements AccumulatorInfoSupplier
AccumulatorInfoSupplier
.
At most one thread can write to this class at a time.AccumulatorInfoSupplier
Constructor and Description |
---|
DefaultAccumulatorInfoSupplier() |
Modifier and Type | Method and Description |
---|---|
AccumulatorInfo |
getAccumulatorInfoOrNull(String mapName,
String cacheName)
Returns
AccumulatorInfo for cache of maIMap p. |
void |
putIfAbsent(String mapName,
String cacheName,
AccumulatorInfo info)
Adds a new
AccumulatorInfo for the query-cache of IMap . |
void |
remove(String mapName,
String cacheName)
Removes
AccumulatorInfo from this supplier. |
public AccumulatorInfo getAccumulatorInfoOrNull(String mapName, String cacheName)
AccumulatorInfoSupplier
AccumulatorInfo
for cache of maIMap
p.getAccumulatorInfoOrNull
in interface AccumulatorInfoSupplier
mapName
- map name.cacheName
- cache name.AccumulatorInfo
for cache of map.public void putIfAbsent(String mapName, String cacheName, AccumulatorInfo info)
AccumulatorInfoSupplier
AccumulatorInfo
for the query-cache of IMap
.putIfAbsent
in interface AccumulatorInfoSupplier
mapName
- map name.cacheName
- cache name.public void remove(String mapName, String cacheName)
AccumulatorInfoSupplier
AccumulatorInfo
from this supplier.remove
in interface AccumulatorInfoSupplier
mapName
- map name.cacheName
- cache name.Copyright © 2017 Hazelcast, Inc.. All Rights Reserved.