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