com.lambdaworks.redis.output
Class BooleanOutput<K,V>
java.lang.Object
com.lambdaworks.redis.protocol.CommandOutput<K,V,Boolean>
com.lambdaworks.redis.output.BooleanOutput<K,V>
public class BooleanOutput<K,V>
- extends CommandOutput<K,V,Boolean>
Boolean output. The actual value is returned as an integer
where 0 indicates false and 1 indicates true, or as a null
bulk reply for script output.
- Author:
- Will Glozer
|
Method Summary |
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BooleanOutput
public BooleanOutput(RedisCodec<K,V> codec)
set
public void set(long integer)
- Description copied from class:
CommandOutput
- Set the command output to a 64-bit signed integer. Concrete
CommandOutput implementations must override this method
unless they only receive a byte array value.
- Overrides:
set in class CommandOutput<K,V,Boolean>
- Parameters:
integer - The command output.
set
public void set(ByteBuffer bytes)
- Description copied from class:
CommandOutput
- Set the command output to a sequence of bytes, or null. Concrete
CommandOutput implementations must override this method
unless they only receive an integer value which cannot be null.
- Overrides:
set in class CommandOutput<K,V,Boolean>
- Parameters:
bytes - The command output, or null.
Copyright © 2013. All Rights Reserved.