public class PublisherRegistry extends Object implements Registry<String,PartitionAccumulatorRegistry>
cacheName
to PartitionAccumulatorRegistry
.PartitionAccumulatorRegistry
Constructor and Description |
---|
PublisherRegistry(QueryCacheContext context,
String mapName) |
Modifier and Type | Method and Description |
---|---|
protected PublisherAccumulatorFactory |
createPublisherAccumulatorFactory() |
Map<String,PartitionAccumulatorRegistry> |
getAll()
Returns map of all registered items in this registry.
|
PartitionAccumulatorRegistry |
getOrCreate(String cacheName)
Returns item if it exists in this registry or creates it.
|
PartitionAccumulatorRegistry |
getOrNull(String cacheName)
Returns item if it exists in this registry otherwise returns null.
|
PartitionAccumulatorRegistry |
remove(String cacheName)
Removes the registration from this registry.
|
public PublisherRegistry(QueryCacheContext context, String mapName)
public PartitionAccumulatorRegistry getOrCreate(String cacheName)
Registry
getOrCreate
in interface Registry<String,PartitionAccumulatorRegistry>
cacheName
- key for reaching the item from this registry.public PartitionAccumulatorRegistry getOrNull(String cacheName)
Registry
getOrNull
in interface Registry<String,PartitionAccumulatorRegistry>
cacheName
- key for reaching the item from this registry.public Map<String,PartitionAccumulatorRegistry> getAll()
Registry
getAll
in interface Registry<String,PartitionAccumulatorRegistry>
public PartitionAccumulatorRegistry remove(String cacheName)
Registry
remove
in interface Registry<String,PartitionAccumulatorRegistry>
cacheName
- key for reaching the item from this registry.protected PublisherAccumulatorFactory createPublisherAccumulatorFactory()
Copyright © 2017 Hazelcast, Inc.. All Rights Reserved.