| Constructor and Description |
|---|
CommandArguments(ProtocolCommand command) |
| Modifier and Type | Method and Description |
|---|---|
CommandArguments |
add(boolean arg) |
CommandArguments |
add(byte[] arg) |
CommandArguments |
add(double arg) |
CommandArguments |
add(int arg) |
CommandArguments |
add(long arg) |
CommandArguments |
add(java.lang.Object arg) |
CommandArguments |
add(Rawable arg) |
CommandArguments |
add(java.lang.String arg) |
protected CommandArguments |
addHashSlotKeys(byte[]... keys) |
protected CommandArguments |
addHashSlotKeys(java.lang.String... keys) |
CommandArguments |
addObjects(java.util.Collection args) |
CommandArguments |
addObjects(java.lang.Object... args) |
CommandArguments |
addParams(IParams params) |
CommandArguments |
blocking() |
Rawable |
get(int index)
Get the argument at the specified index.
|
ProtocolCommand |
getCommand() |
java.util.Set<java.lang.Integer> |
getKeyHashSlots() |
java.util.List<java.lang.Object> |
getKeys()
Returns the keys used in this command.
|
boolean |
isBlocking() |
boolean |
isKeyless() |
java.util.Iterator<Rawable> |
iterator() |
CommandArguments |
key(java.lang.Object key) |
CommandArguments |
keys(java.util.Collection keys) |
CommandArguments |
keys(java.lang.Object... keys) |
int |
size() |
public CommandArguments(ProtocolCommand command)
public ProtocolCommand getCommand()
public CommandArguments add(Rawable arg)
public CommandArguments add(byte[] arg)
public CommandArguments add(boolean arg)
public CommandArguments add(int arg)
public CommandArguments add(long arg)
public CommandArguments add(double arg)
public CommandArguments add(java.lang.String arg)
public CommandArguments add(java.lang.Object arg)
public CommandArguments addObjects(java.lang.Object... args)
public CommandArguments addObjects(java.util.Collection args)
public CommandArguments key(java.lang.Object key)
public final CommandArguments keys(java.lang.Object... keys)
public final CommandArguments keys(java.util.Collection keys)
public final CommandArguments addParams(IParams params)
protected final CommandArguments addHashSlotKeys(byte[]... keys)
protected final CommandArguments addHashSlotKeys(java.lang.String... keys)
public int size()
public Rawable get(int index)
index - the index of the argument to retrieve (0-based, where 0 is the command itself)java.lang.IndexOutOfBoundsException - if the index is out of rangepublic java.util.Iterator<Rawable> iterator()
iterator in interface java.lang.Iterable<Rawable>@Internal public java.util.List<java.lang.Object> getKeys()
Internal API: This method is internal and should not be used by external code.
It is exposed for internal use by caching (CacheKey.getRedisKeys())
and cluster operations.
Supported types: Keys are stored as either String or byte[] depending on
how they were added via key(Object) or addHashSlotKey(String)/addHashSlotKey(byte[]).
Only String and byte[] are guaranteed to be supported by downstream consumers.
Type safety: Consumers must handle both String and byte[] types.
Passing other types may cause IllegalArgumentException when used with caching
(see AbstractCache.makeKeyForRedisKeysToCacheKeys(Object))
or cluster operations.
The returned list is unmodifiable to prevent external modification of the internal key tracking.
String or byte[])@Internal public java.util.Set<java.lang.Integer> getKeyHashSlots()
public boolean isKeyless()
public boolean isBlocking()
public CommandArguments blocking()
Copyright © 2026. All rights reserved.