public class BaseRedisCommandBuilder<K,V> extends Object
Modifier and Type | Field and Description |
---|---|
protected RedisCodec<K,V> |
codec |
protected static byte[] |
MINUS_BYTES |
protected static String |
MUST_NOT_BE_EMPTY |
protected static String |
MUST_NOT_BE_NULL |
protected static String |
MUST_NOT_CONTAIN_NULL_ELEMENTS |
protected static byte[] |
PLUS_BYTES |
Constructor and Description |
---|
BaseRedisCommandBuilder(RedisCodec<K,V> codec) |
Modifier and Type | Method and Description |
---|---|
protected static void |
addLimit(CommandArgs<?,?> args,
Limit limit) |
protected boolean |
allElementsInstanceOf(Object[] objects,
Class<?> expectedAssignableType) |
protected static void |
assertNodeId(String nodeId) |
protected <T> Command<K,V,T> |
createCommand(CommandType type,
CommandOutput<K,V,T> output) |
protected <T> Command<K,V,T> |
createCommand(CommandType type,
CommandOutput<K,V,T> output,
CommandArgs<K,V> args) |
protected <T> Command<K,V,T> |
createCommand(CommandType type,
CommandOutput<K,V,T> output,
K key) |
protected <T> Command<K,V,T> |
createCommand(CommandType type,
CommandOutput<K,V,T> output,
K key,
V value) |
protected <T> Command<K,V,T> |
createCommand(CommandType type,
CommandOutput<K,V,T> output,
K key,
V[] values) |
protected static void |
keyAndFieldsProvided(Object key,
Object[] fields) |
protected static String |
max(Range<? extends Number> range) |
protected byte[] |
maxValue(Range<? extends V> range) |
protected static String |
min(Range<? extends Number> range) |
protected byte[] |
minValue(Range<? extends V> range) |
protected <T> CommandOutput<K,V,T> |
newScriptOutput(RedisCodec<K,V> codec,
ScriptOutputType type) |
protected static void |
notEmpty(Object[] keys) |
protected static void |
notEmptyRanges(Range<?>[] ranges) |
protected static void |
notEmptySlots(int[] slots) |
protected static void |
notEmptyValues(Object[] values) |
protected static void |
notNull(KeyStreamingChannel<?> channel) |
protected static void |
notNull(KeyValueStreamingChannel<?,?> channel) |
protected static void |
notNull(ScoredValueStreamingChannel<?> channel) |
protected static void |
notNull(ValueStreamingChannel<?> channel) |
protected static void |
notNullKey(Object key) |
protected static void |
notNullLimit(Limit limit) |
protected static void |
notNullMinMax(String min,
String max) |
protected static void |
notNullRange(Range<?> range) |
protected static final String MUST_NOT_CONTAIN_NULL_ELEMENTS
protected static final String MUST_NOT_BE_EMPTY
protected static final String MUST_NOT_BE_NULL
protected static final byte[] MINUS_BYTES
protected static final byte[] PLUS_BYTES
protected final RedisCodec<K,V> codec
public BaseRedisCommandBuilder(RedisCodec<K,V> codec)
protected <T> Command<K,V,T> createCommand(CommandType type, CommandOutput<K,V,T> output)
protected <T> Command<K,V,T> createCommand(CommandType type, CommandOutput<K,V,T> output, K key)
protected <T> Command<K,V,T> createCommand(CommandType type, CommandOutput<K,V,T> output, K key, V value)
protected <T> Command<K,V,T> createCommand(CommandType type, CommandOutput<K,V,T> output, K key, V[] values)
protected <T> Command<K,V,T> createCommand(CommandType type, CommandOutput<K,V,T> output, CommandArgs<K,V> args)
protected <T> CommandOutput<K,V,T> newScriptOutput(RedisCodec<K,V> codec, ScriptOutputType type)
protected boolean allElementsInstanceOf(Object[] objects, Class<?> expectedAssignableType)
protected static void notNull(ScoredValueStreamingChannel<?> channel)
protected static void notNull(KeyStreamingChannel<?> channel)
protected static void notNull(ValueStreamingChannel<?> channel)
protected static void notNull(KeyValueStreamingChannel<?,?> channel)
protected static void addLimit(CommandArgs<?,?> args, Limit limit)
protected static void assertNodeId(String nodeId)
protected static void notEmpty(Object[] keys)
protected static void notEmptySlots(int[] slots)
protected static void notEmptyValues(Object[] values)
protected static void notNullKey(Object key)
protected static void notNullLimit(Limit limit)
protected static void notNullRange(Range<?> range)
protected static void notEmptyRanges(Range<?>[] ranges)
Copyright © 2025 lettuce.io. All rights reserved.