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 { public interface RedissonCodec {
/** Object decodeKey(ByteBuffer bytes);
* Decode the key output by redis.
*
* @param bytes Raw bytes of the key.
*
* @return The decoded key.
*/
public abstract Object decodeKey(ByteBuffer bytes);
/** Object decodeValue(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);
/** byte[] encodeKey(Object key);
* Encode the key for output to redis.
*
* @param key Key.
*
* @return The encoded key.
*/
public abstract byte[] encodeKey(Object key);
/** byte[] encodeValue(Object value);
* Encode the value for output to redis.
*
* @param value Value.
*
* @return The encoded value.
*/
public abstract byte[] encodeValue(Object value);
} }

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