Package io.lettuce.core.models.command
Enum CommandDetail.Flag
- java.lang.Object
-
- java.lang.Enum<CommandDetail.Flag>
-
- io.lettuce.core.models.command.CommandDetail.Flag
-
- All Implemented Interfaces:
Serializable
,Comparable<CommandDetail.Flag>
- Enclosing class:
- CommandDetail
public static enum CommandDetail.Flag extends Enum<CommandDetail.Flag>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADMIN
server admin command.ASKING
cluster related - accept even if importing.DENYOOM
reject command if currently OOM.FAST
command operates in constant or log(N) time.LOADING
allow command while database is loading.MOVABLEKEYS
keys have no pre-determined position.NOSCRIPT
deny this command from scripts.PUBSUB
pubsub-related command.RANDOM
command has random results, dangerous for scripts.READONLY
command will never modify keys.SKIP_MONITOR
do not show this command in MONITOR.SORT_FOR_SCRIPT
if called from script, sort output.STALE
allow command while replica has stale data.WRITE
command may result in modifications.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CommandDetail.Flag
valueOf(String name)
Returns the enum constant of this type with the specified name.static CommandDetail.Flag[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
WRITE
public static final CommandDetail.Flag WRITE
command may result in modifications.
-
READONLY
public static final CommandDetail.Flag READONLY
command will never modify keys.
-
DENYOOM
public static final CommandDetail.Flag DENYOOM
reject command if currently OOM.
-
ADMIN
public static final CommandDetail.Flag ADMIN
server admin command.
-
PUBSUB
public static final CommandDetail.Flag PUBSUB
pubsub-related command.
-
NOSCRIPT
public static final CommandDetail.Flag NOSCRIPT
deny this command from scripts.
-
RANDOM
public static final CommandDetail.Flag RANDOM
command has random results, dangerous for scripts.
-
SORT_FOR_SCRIPT
public static final CommandDetail.Flag SORT_FOR_SCRIPT
if called from script, sort output.
-
LOADING
public static final CommandDetail.Flag LOADING
allow command while database is loading.
-
STALE
public static final CommandDetail.Flag STALE
allow command while replica has stale data.
-
SKIP_MONITOR
public static final CommandDetail.Flag SKIP_MONITOR
do not show this command in MONITOR.
-
ASKING
public static final CommandDetail.Flag ASKING
cluster related - accept even if importing.
-
FAST
public static final CommandDetail.Flag FAST
command operates in constant or log(N) time. Used for latency monitoring.
-
MOVABLEKEYS
public static final CommandDetail.Flag MOVABLEKEYS
keys have no pre-determined position. You must discover keys yourself.
-
-
Method Detail
-
values
public static CommandDetail.Flag[] 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 (CommandDetail.Flag c : CommandDetail.Flag.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CommandDetail.Flag 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
-
-