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 maIMapp. |
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)
AccumulatorInfoSupplierAccumulatorInfo for cache of maIMapp.getAccumulatorInfoOrNull in interface AccumulatorInfoSuppliermapName - map name.cacheName - cache name.AccumulatorInfo for cache of map.public void putIfAbsent(String mapName, String cacheName, AccumulatorInfo info)
AccumulatorInfoSupplierAccumulatorInfo for the query-cache of IMap.putIfAbsent in interface AccumulatorInfoSuppliermapName - map name.cacheName - cache name.public void remove(String mapName, String cacheName)
AccumulatorInfoSupplierAccumulatorInfo from this supplier.remove in interface AccumulatorInfoSuppliermapName - map name.cacheName - cache name.Copyright © 2017 Hazelcast, Inc.. All Rights Reserved.