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 values output.StreamingOutput.Subscriber<T>codec, error, output| Constructor and Description |
|---|
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)
Set the command output to a sequence of bytes, or null.
|
void |
setSubscriber(StreamingOutput.Subscriber<KeyValue<K,V>> subscriber)
Sets the
StreamingOutput.Subscriber. |
public KeyValueListOutput(RedisCodec<K,V> codec, Iterable<K> keys)
public void set(ByteBuffer bytes)
CommandOutputCommandOutput implementations must override this
method unless they only receive an integer value which cannot be null.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.