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