Package org.redisson.api
Enum LocalCachedMapOptions.ReconnectionStrategy
- java.lang.Object
-
- java.lang.Enum<LocalCachedMapOptions.ReconnectionStrategy>
-
- org.redisson.api.LocalCachedMapOptions.ReconnectionStrategy
-
- All Implemented Interfaces:
Serializable
,Comparable<LocalCachedMapOptions.ReconnectionStrategy>
- Enclosing class:
- 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.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static LocalCachedMapOptions.ReconnectionStrategy
valueOf(String name)
Returns the enum constant of this type with the specified name.static LocalCachedMapOptions.ReconnectionStrategy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final LocalCachedMapOptions.ReconnectionStrategy NONE
No reconnect handling.
-
CLEAR
public static final LocalCachedMapOptions.ReconnectionStrategy CLEAR
Clear local cache if map instance disconnected.
-
LOAD
public static final LocalCachedMapOptions.ReconnectionStrategy 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 Detail
-
values
public static LocalCachedMapOptions.ReconnectionStrategy[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (LocalCachedMapOptions.ReconnectionStrategy c : LocalCachedMapOptions.ReconnectionStrategy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LocalCachedMapOptions.ReconnectionStrategy valueOf(String name)
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
-
-