public class IntegerOutput<K,V> extends CommandOutput<K,V,Long>
codec, error, exception, output
Constructor and Description |
---|
IntegerOutput(RedisCodec<K,V> codec) |
Modifier and Type | Method and Description |
---|---|
void |
set(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.
|
complete, decodeAscii, get, getError, getException, hasError, hasException, setError, setError, setException
public IntegerOutput(RedisCodec<K,V> codec)
public void set(long integer)
CommandOutput
CommandOutput
implementations must override this method
unless they only receive a byte array value.set
in class CommandOutput<K,V,Long>
integer
- The command output.public void set(ByteBuffer bytes)
CommandOutput
CommandOutput
implementations must override this method
unless they only receive an integer value which cannot be null.set
in class CommandOutput<K,V,Long>
bytes
- The command output, or null.Copyright © 2014–2015. All rights reserved.