Enum CommandNaming.Strategy
- java.lang.Object
-
- java.lang.Enum<CommandNaming.Strategy>
-
- io.lettuce.core.dynamic.annotation.CommandNaming.Strategy
-
- All Implemented Interfaces:
Serializable
,Comparable<CommandNaming.Strategy>
- Enclosing class:
- CommandNaming
public static enum CommandNaming.Strategy extends Enum<CommandNaming.Strategy>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DEFAULT
Not defined here which defaults toSPLIT
if nothing else found.DOT
Replace camel humps with spaces.METHOD_NAME
Passthru the command as-is.SPLIT
Replace camel humps with spaces and split the method name into multiple command segments.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CommandNaming.Strategy
valueOf(String name)
Returns the enum constant of this type with the specified name.static CommandNaming.Strategy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SPLIT
public static final CommandNaming.Strategy SPLIT
Replace camel humps with spaces and split the method name into multiple command segments. A method namedclientSetname
would issue a commandCLIENT SETNAME
.
-
DOT
public static final CommandNaming.Strategy DOT
Replace camel humps with spaces. A method namednrRun
would issue a command namedNR.RUN
.
-
METHOD_NAME
public static final CommandNaming.Strategy METHOD_NAME
Passthru the command as-is. A method namedclientSetname
would issue a command namedCLIENTSETNAME
.
-
DEFAULT
public static final CommandNaming.Strategy DEFAULT
Not defined here which defaults toSPLIT
if nothing else found.
-
-
Method Detail
-
values
public static CommandNaming.Strategy[] 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 (CommandNaming.Strategy c : CommandNaming.Strategy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CommandNaming.Strategy 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
-
-