Enum Class RedisKeyValueAdapter.EnableKeyspaceEvents
java.lang.Object
java.lang.Enum<RedisKeyValueAdapter.EnableKeyspaceEvents>
org.springframework.data.redis.core.RedisKeyValueAdapter.EnableKeyspaceEvents
- All Implemented Interfaces:
Serializable
,Comparable<RedisKeyValueAdapter.EnableKeyspaceEvents>
,Constable
- Enclosing class:
- RedisKeyValueAdapter
public static enum RedisKeyValueAdapter.EnableKeyspaceEvents
extends Enum<RedisKeyValueAdapter.EnableKeyspaceEvents>
- Since:
- 1.8
- Author:
- Christoph Strobl
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionTurnKeyExpirationEventMessageListener
usage off.Initializes theKeyExpirationEventMessageListener
on first insert having expiration time set.Initializes theKeyExpirationEventMessageListener
on startup. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ON_STARTUP
Initializes theKeyExpirationEventMessageListener
on startup. -
ON_DEMAND
Initializes theKeyExpirationEventMessageListener
on first insert having expiration time set. -
OFF
TurnKeyExpirationEventMessageListener
usage off. No expiration events will be received.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-