RedissonCodec comments removed

pull/6/head
Nikita 11 years ago
parent c13ce190ab
commit 1eb7882fa0

@ -4,40 +4,12 @@ import java.nio.ByteBuffer;
public interface RedissonCodec {
/**
* Decode the key output by redis.
*
* @param bytes Raw bytes of the key.
*
* @return The decoded key.
*/
public abstract Object decodeKey(ByteBuffer bytes);
Object decodeKey(ByteBuffer bytes);
/**
* Decode the value output by redis.
*
* @param bytes Raw bytes of the value.
*
* @return The decoded value.
*/
public abstract Object decodeValue(ByteBuffer bytes);
Object decodeValue(ByteBuffer bytes);
/**
* Encode the key for output to redis.
*
* @param key Key.
*
* @return The encoded key.
*/
public abstract byte[] encodeKey(Object key);
byte[] encodeKey(Object key);
/**
* Encode the value for output to redis.
*
* @param value Value.
*
* @return The encoded value.
*/
public abstract byte[] encodeValue(Object value);
byte[] encodeValue(Object value);
}

@ -6,7 +6,7 @@ import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.nio.ByteBuffer;
public class StreamCodec implements RedissonCodec {
public class SerializationCodec implements RedissonCodec {
@Override
public Object decodeKey(ByteBuffer bytes) {
Loading…
Cancel
Save