Package | Description |
---|---|
org.apache.nifi.distributed.cache.client |
Modifier and Type | Method and Description |
---|---|
<T> boolean |
DistributedSetCacheClient.addIfAbsent(T value,
Serializer<T> serializer)
Adds the specified value to the cache, serializing the value with the
given
Serializer . |
<T> boolean |
DistributedSetCacheClient.contains(T value,
Serializer<T> serializer) |
<K> boolean |
DistributedMapCacheClient.containsKey(K key,
Serializer<K> keySerializer)
Determines if the given value is present in the cache and if so returns
true , else returns false |
<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. |
<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. |
<K,V> void |
DistributedMapCacheClient.put(K key,
V value,
Serializer<K> keySerializer,
Serializer<V> valueSerializer)
Adds the specified key and value to the cache, overwriting any value that is
currently set.
|
<K,V> void |
DistributedMapCacheClient.put(K key,
V value,
Serializer<K> keySerializer,
Serializer<V> valueSerializer)
Adds the specified key and value to the cache, overwriting any value that is
currently set.
|
default <K,V> void |
DistributedMapCacheClient.putAll(Map<K,V> keysAndValues,
Serializer<K> keySerializer,
Serializer<V> valueSerializer)
Performs a bulk put operation.
|
default <K,V> void |
DistributedMapCacheClient.putAll(Map<K,V> keysAndValues,
Serializer<K> keySerializer,
Serializer<V> valueSerializer)
Performs a bulk put operation.
|
<K,V> boolean |
DistributedMapCacheClient.putIfAbsent(K key,
V value,
Serializer<K> keySerializer,
Serializer<V> valueSerializer)
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. |
<K,V> boolean |
DistributedMapCacheClient.putIfAbsent(K key,
V value,
Serializer<K> keySerializer,
Serializer<V> valueSerializer)
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. |
<K> boolean |
DistributedMapCacheClient.remove(K key,
Serializer<K> serializer)
Removes the entry with the given key from the cache, if it is present.
|
<T> boolean |
DistributedSetCacheClient.remove(T value,
Serializer<T> serializer)
Removes the given value from the cache, if it is present.
|
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.
|
<K,V> boolean |
AtomicDistributedMapCacheClient.replace(AtomicCacheEntry<K,V,R> entry,
Serializer<K> keySerializer,
Serializer<V> valueSerializer)
Replace an existing key with new value.
|
<K,V> boolean |
AtomicDistributedMapCacheClient.replace(AtomicCacheEntry<K,V,R> entry,
Serializer<K> keySerializer,
Serializer<V> valueSerializer)
Replace an existing key with new value.
|
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.