K - Key type.V - Value type.public class KeyValueListOutput<K,V> extends CommandOutput<K,V,List<KeyValue<K,V>>> implements StreamingOutput<KeyValue<K,V>>
List of KeyValue output. Can be either used to decode key-value tuples (e.g. HGETALL) of for a pure
value response where keys are supplied as input (for e.g. HMGET).StreamingOutput.Subscriber<T>codec, error, output| Constructor and Description |
|---|
KeyValueListOutput(RedisCodec<K,V> codec) |
KeyValueListOutput(RedisCodec<K,V> codec,
Iterable<K> keys) |
| Modifier and Type | Method and Description |
|---|---|
StreamingOutput.Subscriber<KeyValue<K,V>> |
getSubscriber()
Retrieves the
StreamingOutput.Subscriber. |
void |
multi(int count)
Mark the beginning of a multi sequence (array).
|
void |
set(ByteBuffer bytes)
Update the command output with a sequence of bytes, or
null. |
void |
setSubscriber(StreamingOutput.Subscriber<KeyValue<K,V>> subscriber)
Sets the
StreamingOutput.Subscriber. |
complete, decodeAscii, get, getError, hasError, multiArray, multiMap, multiPush, multiSet, set, set, set, setBigNumber, setError, setError, setSingle, toStringpublic KeyValueListOutput(RedisCodec<K,V> codec)
public KeyValueListOutput(RedisCodec<K,V> codec, Iterable<K> keys)
public void set(ByteBuffer bytes)
CommandOutputnull. Concrete CommandOutput implementations must
override this method to decode bulk/bytes response values.public void multi(int count)
CommandOutputpublic void setSubscriber(StreamingOutput.Subscriber<KeyValue<K,V>> subscriber)
StreamingOutputStreamingOutput.Subscriber.setSubscriber in interface StreamingOutput<KeyValue<K,V>>public StreamingOutput.Subscriber<KeyValue<K,V>> getSubscriber()
StreamingOutputStreamingOutput.Subscriber.getSubscriber in interface StreamingOutput<KeyValue<K,V>>Copyright © 2021 lettuce.io. All rights reserved.