com.lambdaworks.redis.output
Class DateOutput<K,V>

java.lang.Object
  extended by com.lambdaworks.redis.protocol.CommandOutput<K,V,Date>
      extended by com.lambdaworks.redis.output.DateOutput<K,V>

public class DateOutput<K,V>
extends CommandOutput<K,V,Date>

Date output with no milliseconds.

Author:
Will Glozer

Field Summary
 
Fields inherited from class com.lambdaworks.redis.protocol.CommandOutput
codec, error, output
 
Constructor Summary
DateOutput(RedisCodec<K,V> codec)
           
 
Method Summary
 void set(long time)
          Set the command output to a 64-bit signed integer.
 
Methods inherited from class com.lambdaworks.redis.protocol.CommandOutput
complete, decodeAscii, get, getError, hasError, set, setError, setError
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateOutput

public DateOutput(RedisCodec<K,V> codec)
Method Detail

set

public void set(long time)
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,Date>
Parameters:
time - The command output.


Copyright © 2013. All Rights Reserved.