public static enum RedisKeyValueAdapter.EnableKeyspaceEvents extends Enum<RedisKeyValueAdapter.EnableKeyspaceEvents>
| Enum Constant and Description |
|---|
OFF
Turn
KeyExpirationEventMessageListener usage off. |
ON_DEMAND
Initializes the
KeyExpirationEventMessageListener on first insert having expiration time set. |
ON_STARTUP
Initializes the
KeyExpirationEventMessageListener on startup. |
| Modifier and Type | Method and Description |
|---|---|
static RedisKeyValueAdapter.EnableKeyspaceEvents |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RedisKeyValueAdapter.EnableKeyspaceEvents[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RedisKeyValueAdapter.EnableKeyspaceEvents ON_STARTUP
KeyExpirationEventMessageListener on startup.public static final RedisKeyValueAdapter.EnableKeyspaceEvents ON_DEMAND
KeyExpirationEventMessageListener on first insert having expiration time set.public static final RedisKeyValueAdapter.EnableKeyspaceEvents OFF
KeyExpirationEventMessageListener usage off. No expiration events will be received.public static RedisKeyValueAdapter.EnableKeyspaceEvents[] values()
for (RedisKeyValueAdapter.EnableKeyspaceEvents c : RedisKeyValueAdapter.EnableKeyspaceEvents.values()) System.out.println(c);
public static RedisKeyValueAdapter.EnableKeyspaceEvents valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2011–2019 Pivotal Software, Inc.. All rights reserved.