public class GetRequest extends BinaryRequest<GetResult<byte[]>> implements GetRequest
| Modifier and Type | Field and Description |
|---|---|
private byte |
opcode |
private int |
ttl |
HEADER_SIZE, MAGIC_NUMBER, opaque, opaqueSet| Constructor and Description |
|---|
GetRequest(String key,
Charset charset,
byte opcode,
int ttl) |
| Modifier and Type | Method and Description |
|---|---|
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, toBufferpublic io.netty.buffer.ByteBuf writeRequest(io.netty.buffer.ByteBufAllocator alloc,
ByteBuffer dst)
writeRequest in class Request<GetResult<byte[]>>public void handle(BinaryResponse replies) throws IOException
handle in class BinaryRequest<GetResult<byte[]>>IOExceptionCopyright © 2017 Spotify AB. All rights reserved.