K - Key type.V - Value type.public class PubSubOutput<K,V> extends CommandOutput<K,V,V> implements PubSubMessage<K,V>
| Modifier and Type | Class and Description |
|---|---|
static class |
PubSubOutput.Type |
codec, error, output| Constructor and Description |
|---|
PubSubOutput(RedisCodec<K,V> codec) |
| Modifier and Type | Method and Description |
|---|---|
V |
body() |
K |
channel() |
long |
count() |
K |
pattern() |
void |
set(ByteBuffer bytes)
Update the command output with a sequence of bytes, or
null. |
void |
set(long integer)
Update the command output with a 64-bit signed integer.
|
PubSubOutput.Type |
type() |
complete, decodeAscii, get, getError, hasError, multi, multiArray, multiMap, multiPush, multiSet, set, set, setBigNumber, setError, setError, setSingle, toStringpublic PubSubOutput(RedisCodec<K,V> codec)
public PubSubOutput.Type type()
type in interface PubSubMessage<K,V>PubSubOutput.Type message type.public K channel()
channel in interface PubSubMessage<K,V>public K pattern()
pattern in interface PubSubMessage<K,V>null.public long count()
count in interface PubSubMessage<K,V>public void set(ByteBuffer bytes)
CommandOutputnull. Concrete CommandOutput implementations must
override this method to decode bulk/bytes response values.set in class CommandOutput<K,V,V>bytes - The command output, or null.public void set(long integer)
CommandOutputCommandOutput implementations must override this
method to decode number (integer) response values.set in class CommandOutput<K,V,V>integer - The command output.public V body()
body in interface PubSubMessage<K,V>null.Copyright © 2021 lettuce.io. All rights reserved.