com.lambdaworks.redis.output.IntegerOutput Maven / Gradle / Ivy
// Copyright (C) 2011 - Will Glozer. All rights reserved.
package com.lambdaworks.redis.output;
import com.lambdaworks.redis.codec.RedisCodec;
import com.lambdaworks.redis.protocol.CommandOutput;
import java.nio.ByteBuffer;
/**
* 64-bit integer output, may be null.
*
* @author Will Glozer
*/
public class IntegerOutput extends CommandOutput {
public IntegerOutput(RedisCodec codec) {
super(codec, null);
}
@Override
public void set(long integer) {
output = integer;
}
@Override
public void set(ByteBuffer bytes) {
output = null;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy