mirror of
https://github.com/apache/nifi.git
synced 2025-02-07 10:38:33 +00:00
NIFI-12509 Changing default TTL of HazelcastMapCacheClient
This closes #8154. Signed-off-by: Peter Turcsanyi <turcsanyi@apache.org> (cherry picked from commit 3c4ccd2c647d593c04c0f2dac85df7c5a652d885)
This commit is contained in:
parent
348d870894
commit
dc3b8cea86
@ -78,10 +78,11 @@ public class HazelcastMapCacheClient extends AbstractControllerService implement
|
|||||||
.name("hazelcast-entry-ttl")
|
.name("hazelcast-entry-ttl")
|
||||||
.displayName("Hazelcast Entry Lifetime")
|
.displayName("Hazelcast Entry Lifetime")
|
||||||
.description("Indicates how long the written entries should exist in Hazelcast. Setting it to '0 secs' means that the data" +
|
.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)
|
.required(true)
|
||||||
.addValidator(StandardValidators.TIME_PERIOD_VALIDATOR)
|
.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();
|
.build();
|
||||||
|
|
||||||
private static final long STARTING_REVISION = 1;
|
private static final long STARTING_REVISION = 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user