Package | Description |
---|---|
org.apache.nifi.distributed.cache.client |
Modifier and Type | Method and Description |
---|---|
<K,V> AtomicCacheEntry<K,V,R> |
AtomicDistributedMapCacheClient.fetch(K key,
Serializer<K> keySerializer,
Deserializer<V> valueDeserializer)
Fetch a CacheEntry with a key.
|
<K,V> V |
DistributedMapCacheClient.get(K key,
Serializer<K> keySerializer,
Deserializer<V> valueDeserializer)
Returns the value in the cache for the given key, if one exists;
otherwise returns
null |
<K,V> V |
DistributedMapCacheClient.getAndPutIfAbsent(K key,
V value,
Serializer<K> keySerializer,
Serializer<V> valueSerializer,
Deserializer<V> valueDeserializer)
Adds the specified key and value to the cache, if they are not already
present, serializing the key and value with the given
Serializer s. |
default <K> Set<K> |
DistributedMapCacheClient.keySet(Deserializer<K> keyDeserializer)
Returns a set of all keys currently in the cache
|
default <K,V> V |
DistributedMapCacheClient.removeAndGet(K key,
Serializer<K> keySerializer,
Deserializer<V> valueDeserializer)
Removes the entry with the given key from the cache, if it is present,
and returns the value that was removed from the map.
|
default <K,V> Map<K,V> |
DistributedMapCacheClient.removeByPatternAndGet(String regex,
Deserializer<K> keyDeserializer,
Deserializer<V> valueDeserializer)
Removes entries whose keys match the specified pattern, and returns a map of entries that
were removed.
|
default <K,V> Map<K,V> |
DistributedMapCacheClient.removeByPatternAndGet(String regex,
Deserializer<K> keyDeserializer,
Deserializer<V> valueDeserializer)
Removes entries whose keys match the specified pattern, and returns a map of entries that
were removed.
|
default <K,V> Map<K,V> |
DistributedMapCacheClient.subMap(Set<K> keys,
Serializer<K> keySerializer,
Deserializer<V> valueDeserializer)
Returns the values in the cache for the given keys, if they exist;
otherwise returns
null |
Copyright © 2021 Apache NiFi Project. All rights reserved.