From 3c4ccd2c647d593c04c0f2dac85df7c5a652d885 Mon Sep 17 00:00:00 2001 From: Bence Simon Date: Wed, 13 Dec 2023 11:54:05 +0100 Subject: [PATCH] NIFI-12509 Changing default TTL of HazelcastMapCacheClient This closes #8154. Signed-off-by: Peter Turcsanyi --- .../services/cacheclient/HazelcastMapCacheClient.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nifi-nar-bundles/nifi-hazelcast-bundle/nifi-hazelcast-services/src/main/java/org/apache/nifi/hazelcast/services/cacheclient/HazelcastMapCacheClient.java b/nifi-nar-bundles/nifi-hazelcast-bundle/nifi-hazelcast-services/src/main/java/org/apache/nifi/hazelcast/services/cacheclient/HazelcastMapCacheClient.java index 0d4eb4f952..d3aec44729 100644 --- a/nifi-nar-bundles/nifi-hazelcast-bundle/nifi-hazelcast-services/src/main/java/org/apache/nifi/hazelcast/services/cacheclient/HazelcastMapCacheClient.java +++ b/nifi-nar-bundles/nifi-hazelcast-bundle/nifi-hazelcast-services/src/main/java/org/apache/nifi/hazelcast/services/cacheclient/HazelcastMapCacheClient.java @@ -78,10 +78,11 @@ public class HazelcastMapCacheClient extends AbstractControllerService implement .name("hazelcast-entry-ttl") .displayName("Hazelcast Entry Lifetime") .description("Indicates how long the written entries should exist in Hazelcast. Setting it to '0 secs' means that the data" + - "will exists until its deletion or until the Hazelcast server is shut down.") + "will exists until its deletion or until the Hazelcast server is shut down. Using `EmbeddedHazelcastCacheManager` as" + + "cache manager will not provide policies to limit the size of the cache.") .required(true) .addValidator(StandardValidators.TIME_PERIOD_VALIDATOR) - .defaultValue("0 secs") // Note: in case of Hazelcast IMap, negative value would mean "map default" which might be overridden by a different client. + .defaultValue("5 min") // Note: in case of Hazelcast IMap, negative value would mean "map default" which might be overridden by a different client. .build(); private static final long STARTING_REVISION = 1;