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