From 46014bc96298080ff7ce4736e69b08d0d66d8e67 Mon Sep 17 00:00:00 2001 From: Jan Hentschel Date: Sat, 7 Jul 2018 20:58:37 +0200 Subject: [PATCH] NIFI-1305 Extended JavaDoc on DistributedMapCacheClient.getAndPutIfAbsent This closes #2857 Signed-off-by: Mike Thomsen --- .../distributed/cache/client/DistributedMapCacheClient.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nifi-nar-bundles/nifi-standard-services/nifi-distributed-cache-client-service-api/src/main/java/org/apache/nifi/distributed/cache/client/DistributedMapCacheClient.java b/nifi-nar-bundles/nifi-standard-services/nifi-distributed-cache-client-service-api/src/main/java/org/apache/nifi/distributed/cache/client/DistributedMapCacheClient.java index 7fa6a6148b..6ab2e3b90d 100644 --- a/nifi-nar-bundles/nifi-standard-services/nifi-distributed-cache-client-service-api/src/main/java/org/apache/nifi/distributed/cache/client/DistributedMapCacheClient.java +++ b/nifi-nar-bundles/nifi-standard-services/nifi-distributed-cache-client-service-api/src/main/java/org/apache/nifi/distributed/cache/client/DistributedMapCacheClient.java @@ -69,7 +69,8 @@ public interface DistributedMapCacheClient extends ControllerService { * @param valueDeserializer value deserializer * @return If a value already exists in the cache for the given * key, the value associated with the key is returned, after being - * deserialized with the given valueDeserializer + * deserialized with the given {@code valueDeserializer}. If the key does not + * exist, the key and its value will be added to the cache. * @throws IOException ex */ V getAndPutIfAbsent(K key, V value, Serializer keySerializer, Serializer valueSerializer, Deserializer valueDeserializer) throws IOException;