NIFI-12509 Changing default TTL of HazelcastMapCacheClient

This closes #8154.

Signed-off-by: Peter Turcsanyi <turcsanyi@apache.org>
This commit is contained in:
Bence Simon 2023-12-13 11:54:05 +01:00 committed by Peter Turcsanyi
parent c272574dcc
commit 3c4ccd2c64
No known key found for this signature in database
GPG Key ID: 55A813F1C3E553DC
1 changed files with 3 additions and 2 deletions

View File

@ -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;