public class CommandArgsAccessor extends Object
integer
argument of CommandArgs
. This class is
part of the internal API and may change without further notice.Constructor and Description |
---|
CommandArgsAccessor() |
Modifier and Type | Method and Description |
---|---|
static <K,V> ByteBuffer |
encodeFirstKey(CommandArgs<K,V> commandArgs)
Get the first encoded key for cluster command routing.
|
static <K,V> List<char[]> |
getCharArrayArguments(CommandArgs<K,V> commandArgs)
Get the all
char[] arguments. |
static <K,V> char[] |
getFirstCharArray(CommandArgs<K,V> commandArgs)
Get the first
char[] -array argument. |
static <K,V> Long |
getFirstInteger(CommandArgs<K,V> commandArgs)
Get the first
integer argument. |
static <K,V> String |
getFirstString(CommandArgs<K,V> commandArgs)
Get the first
String argument. |
static <K,V> List<String> |
getStringArguments(CommandArgs<K,V> commandArgs)
Get the all
String arguments. |
public static <K,V> ByteBuffer encodeFirstKey(CommandArgs<K,V> commandArgs)
commandArgs
- must not be null.null
.public static <K,V> String getFirstString(CommandArgs<K,V> commandArgs)
String
argument.commandArgs
- must not be null.String
argument or null
.public static <K,V> char[] getFirstCharArray(CommandArgs<K,V> commandArgs)
char[]
-array argument.commandArgs
- must not be null.String
argument or null
.public static <K,V> List<String> getStringArguments(CommandArgs<K,V> commandArgs)
String
arguments.commandArgs
- must not be null.String
argument or null
.public static <K,V> List<char[]> getCharArrayArguments(CommandArgs<K,V> commandArgs)
char[]
arguments.commandArgs
- must not be null.String
argument or null
.public static <K,V> Long getFirstInteger(CommandArgs<K,V> commandArgs)
integer
argument.commandArgs
- must not be null.integer
argument or null
.Copyright © 2022 lettuce.io. All rights reserved.