Package org.redisson.api.options
Enum LocalCachedMapOptions.ReconnectionStrategy
java.lang.Object
java.lang.Enum<LocalCachedMapOptions.ReconnectionStrategy>
org.redisson.api.options.LocalCachedMapOptions.ReconnectionStrategy
- All Implemented Interfaces:
Serializable
,Comparable<LocalCachedMapOptions.ReconnectionStrategy>
,java.lang.constant.Constable
- Enclosing interface:
LocalCachedMapOptions<K,
V>
public static enum LocalCachedMapOptions.ReconnectionStrategy
extends Enum<LocalCachedMapOptions.ReconnectionStrategy>
Various strategies to avoid stale objects in local cache.
Handle cases when map instance has been disconnected for a while.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this type with the specified name.values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
NONE
No reconnect handling. -
CLEAR
Clear local cache if map instance disconnected. -
LOAD
Store invalidated entry hash in invalidation log for 10 minutes. Cache keys for stored invalidated entry hashes will be removed if LocalCachedMap instance has been disconnected less than 10 minutes or whole local cache will be cleaned otherwise.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-