public class SubscriberRegistry extends Object implements Registry<String,Accumulator>
IMap
 can be reached from this registry class.
 
 Every map has only one SubscriberRegistry.| Constructor and Description | 
|---|
SubscriberRegistry(QueryCacheContext context,
                  String mapName)  | 
| Modifier and Type | Method and Description | 
|---|---|
protected SubscriberAccumulatorFactory | 
createSubscriberAccumulatorFactory()  | 
Map<String,Accumulator> | 
getAll()
Returns map of all registered items in this registry. 
 | 
protected QueryCacheContext | 
getContext()  | 
Accumulator | 
getOrCreate(String cacheId)
Returns item if it exists in this registry or creates it. 
 | 
Accumulator | 
getOrNull(String cacheId)
Returns item if it exists in this registry otherwise returns null. 
 | 
Accumulator | 
remove(String cacheId)
Removes the registration from this registry. 
 | 
public SubscriberRegistry(QueryCacheContext context, String mapName)
public Accumulator getOrCreate(String cacheId)
RegistrygetOrCreate in interface Registry<String,Accumulator>cacheId - key for reaching the item from this registry.public Accumulator getOrNull(String cacheId)
RegistrygetOrNull in interface Registry<String,Accumulator>cacheId - key for reaching the item from this registry.public Map<String,Accumulator> getAll()
RegistrygetAll in interface Registry<String,Accumulator>public Accumulator remove(String cacheId)
Registryremove in interface Registry<String,Accumulator>cacheId - key for reaching the item from this registry.protected SubscriberAccumulatorFactory createSubscriberAccumulatorFactory()
protected QueryCacheContext getContext()
Copyright © 2018 Hazelcast, Inc.. All Rights Reserved.