All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.lambdaworks.redis.output.ListScanOutput Maven / Gradle / Ivy

There is a newer version: 3.43.0
Show newest version
package com.lambdaworks.redis.output;

import java.nio.ByteBuffer;

import com.lambdaworks.redis.codec.RedisCodec;
import com.lambdaworks.redis.protocol.CommandOutput;

public class ListScanOutput extends CommandOutput> {

    public ListScanOutput(RedisCodec codec) {
        super(codec, new ListScanResult());
    }
    
    @Override
    public void set(ByteBuffer bytes) {
        if (output.getPos() == null) {
            output.setPos(((Number) codec.decodeValue(bytes)).longValue());
        } else {
            output.addValue(codec.decodeValue(bytes));
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy