public class MultigetRequest extends BinaryRequest<List<GetResult<byte[]>>> implements MultiRequest<GetResult<byte[]>>
| Modifier and Type | Field and Description |
|---|---|
private List<byte[]> |
keys |
private int |
ttl |
HEADER_SIZE, MAGIC_NUMBER, opaque, opaqueSet| Modifier | Constructor and Description |
|---|---|
private |
MultigetRequest(List<byte[]> keys,
int ttl) |
| Modifier and Type | Method and Description |
|---|---|
Request<List<GetResult<byte[]>>> |
create(List<byte[]> keys) |
static MultigetRequest |
create(List<String> keys,
Charset charset,
int ttl) |
List<byte[]> |
getKeys() |
void |
handle(BinaryResponse replies) |
io.netty.buffer.ByteBuf |
writeRequest(io.netty.buffer.ByteBufAllocator alloc,
ByteBuffer dst) |
getOpaque, handle, handleSingleReply, setOpaque, writeHeaderencodeKey, encodeKeys, fail, getKey, succeed, toBuffer, toBufferprivate final int ttl
private final List<byte[]> keys
private MultigetRequest(List<byte[]> keys, int ttl)
public static MultigetRequest create(List<String> keys, Charset charset, int ttl)
public io.netty.buffer.ByteBuf writeRequest(io.netty.buffer.ByteBufAllocator alloc,
ByteBuffer dst)
writeRequest in class Request<List<GetResult<byte[]>>>public void handle(BinaryResponse replies) throws IOException
handle in class BinaryRequest<List<GetResult<byte[]>>>IOExceptionpublic List<byte[]> getKeys()
getKeys in interface MultiRequest<GetResult<byte[]>>Copyright © 2017 Spotify AB. All rights reserved.