public class QueryCacheListenerRegistry extends Object implements Registry<String,String>
IMap
events to feed QueryCache
.
This class contains mappings like: cacheId ---> registered listener IDs for underlying IMap
.
Constructor and Description |
---|
QueryCacheListenerRegistry(QueryCacheContext context,
String mapName) |
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
getAll()
Returns map of all registered items in this registry.
|
String |
getOrCreate(String cacheId)
Returns item if it exists in this registry or creates it.
|
String |
getOrNull(String cacheId)
Returns item if it exists in this registry otherwise returns null.
|
String |
remove(String cacheId)
Removes the registration from this registry.
|
public QueryCacheListenerRegistry(QueryCacheContext context, String mapName)
public String getOrCreate(String cacheId)
Registry
getOrCreate
in interface Registry<String,String>
cacheId
- key for reaching the item from this registry.public String getOrNull(String cacheId)
Registry
public Map<String,String> getAll()
Registry
Copyright © 2018 Hazelcast, Inc.. All Rights Reserved.