public class PartitionAccumulatorRegistry extends Object implements Registry<Integer,Accumulator>
partitionId to Accumulator.
 Holds all partition accumulators of a QueryCache.Accumulator| Constructor and Description | 
|---|
| PartitionAccumulatorRegistry(AccumulatorInfo info,
                            ConstructorFunction<Integer,Accumulator> accumulatorConstructor) | 
| Modifier and Type | Method and Description | 
|---|---|
| Map<Integer,Accumulator> | getAll()Returns map of all registered items in this registry. | 
| EventFilter | getEventFilter() | 
| AccumulatorInfo | getInfo() | 
| Accumulator | getOrCreate(Integer partitionId)Returns item if it exists in this registry or creates it. | 
| Accumulator | getOrNull(Integer partitionId)Returns item if it exists in this registry otherwise returns null. | 
| String | getUuid() | 
| Accumulator | remove(Integer id)Removes the registration from this registry. | 
| void | setUuid(String uuid) | 
public PartitionAccumulatorRegistry(AccumulatorInfo info, ConstructorFunction<Integer,Accumulator> accumulatorConstructor)
public Accumulator getOrCreate(Integer partitionId)
RegistrygetOrCreate in interface Registry<Integer,Accumulator>partitionId - key for reaching the item from this registry.public Accumulator getOrNull(Integer partitionId)
RegistrygetOrNull in interface Registry<Integer,Accumulator>partitionId - key for reaching the item from this registry.public Map<Integer,Accumulator> getAll()
RegistrygetAll in interface Registry<Integer,Accumulator>public Accumulator remove(Integer id)
Registryremove in interface Registry<Integer,Accumulator>id - key for reaching the item from this registry.public EventFilter getEventFilter()
public AccumulatorInfo getInfo()
public String getUuid()
public void setUuid(String uuid)
Copyright © 2021 Hazelcast, Inc.. All Rights Reserved.