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)
Registry
getOrCreate
in interface Registry<String,QueryCacheListenerRegistry>
mapName
- key for reaching the item from this registry.public QueryCacheListenerRegistry getOrNull(String mapName)
Registry
getOrNull
in interface Registry<String,QueryCacheListenerRegistry>
mapName
- key for reaching the item from this registry.public Map<String,QueryCacheListenerRegistry> getAll()
Registry
getAll
in interface Registry<String,QueryCacheListenerRegistry>
public QueryCacheListenerRegistry remove(String id)
Registry
remove
in interface Registry<String,QueryCacheListenerRegistry>
id
- key for reaching the item from this registry.Copyright © 2018 Hazelcast, Inc.. All Rights Reserved.