public class QueryCacheListenerRegistry extends Object implements Registry<String,UUID>
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,UUID> |
getAll()
Returns map of all registered items in this registry.
|
UUID |
getOrCreate(String cacheId)
Returns item if it exists in this registry or creates it.
|
UUID |
getOrNull(String cacheId)
Returns item if it exists in this registry otherwise returns null.
|
UUID |
remove(String cacheId)
Removes the registration from this registry.
|
public QueryCacheListenerRegistry(QueryCacheContext context, String mapName)
public UUID getOrCreate(String cacheId)
Registry
getOrCreate
in interface Registry<String,UUID>
cacheId
- key for reaching the item from this registry.public UUID getOrNull(String cacheId)
Registry
public Map<String,UUID> getAll()
Registry
Copyright © 2019 Hazelcast, Inc.. All rights reserved.