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> 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.
|
<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.
|
Copyright © 2016 Apache NiFi Project. All rights reserved.