V - Value type.public class PubSubOutput<K,V> extends CommandOutput<K,V,V>
| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
PubSubOutput.Type |
| Modifier and Type | Field and Description |
|---|---|
private K |
channel |
private long |
count |
private K |
pattern |
private PubSubOutput.Type |
type |
codec, error, output| Constructor and Description |
|---|
PubSubOutput(RedisCodec<K,V> codec) |
| Modifier and Type | Method and Description |
|---|---|
K |
channel() |
long |
count() |
K |
pattern() |
void |
set(java.nio.ByteBuffer bytes)
Set the command output to a sequence of bytes, or null.
|
void |
set(long integer)
Set the command output to a 64-bit signed integer.
|
PubSubOutput.Type |
type() |
complete, decodeAscii, get, getError, hasError, setError, setErrorprivate PubSubOutput.Type type
private K channel
private K pattern
private long count
public PubSubOutput(RedisCodec<K,V> codec)
public PubSubOutput.Type type()
public K channel()
public K pattern()
public long count()
public void set(java.nio.ByteBuffer bytes)
CommandOutputCommandOutput implementations must override this method
unless they only receive an integer value which cannot be null.set in class CommandOutput<K,V,V>bytes - The command output, or null.public void set(long integer)
CommandOutputCommandOutput implementations must override this method
unless they only receive a byte array value.set in class CommandOutput<K,V,V>integer - The command output.