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