public class MultigetRequest extends AsciiRequest<List<GetResult<byte[]>>> implements MultiRequest<GetResult<byte[]>>
| Modifier and Type | Field and Description |
|---|---|
private static byte[] |
CAS_GET |
private byte[] |
cmd |
private static byte[] |
GET |
private List<byte[]> |
keys |
NEWLINE_BYTES, SPACE_BYTES| Modifier | Constructor and Description |
|---|---|
private |
MultigetRequest(List<byte[]> keys,
byte[] cmd) |
| Modifier and Type | Method and Description |
|---|---|
Request<List<GetResult<byte[]>>> |
create(List<byte[]> keys) |
static MultigetRequest |
create(List<String> keys,
Charset charset,
boolean withCas) |
private int |
findKey(int index,
byte[] key) |
List<byte[]> |
getKeys() |
void |
handle(AsciiResponse response) |
io.netty.buffer.ByteBuf |
writeRequest(io.netty.buffer.ByteBufAllocator alloc,
ByteBuffer dst) |
handleencodeKey, encodeKeys, fail, getKey, succeed, toBuffer, toBufferprivate static final byte[] GET
private static final byte[] CAS_GET
private final List<byte[]> keys
private final byte[] cmd
private MultigetRequest(List<byte[]> keys, byte[] cmd)
public static MultigetRequest create(List<String> keys, Charset charset, boolean withCas)
public io.netty.buffer.ByteBuf writeRequest(io.netty.buffer.ByteBufAllocator alloc,
ByteBuffer dst)
writeRequest in class Request<List<GetResult<byte[]>>>public void handle(AsciiResponse response) throws IOException
handle in class AsciiRequest<List<GetResult<byte[]>>>IOExceptionprivate int findKey(int index,
byte[] key)
public List<byte[]> getKeys()
getKeys in interface MultiRequest<GetResult<byte[]>>Copyright © 2017 Spotify AB. All rights reserved.