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> 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. |
public static <K,V> ByteBuffer encodeFirstKey(CommandArgs<K,V> commandArgs)
commandArgs
- must not be 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> Long getFirstInteger(CommandArgs<K,V> commandArgs)
integer
argument.commandArgs
- must not be null.integer
argument or null.Copyright © 2019 lettuce.io. All rights reserved.