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| Constructor and Description |
|---|
GetRequest(String key,
Charset charset,
byte opcode,
int ttl,
int opaque) |
| Modifier and Type | Method and Description |
|---|---|
void |
handle(BinaryResponse replies) |
io.netty.buffer.ByteBuf |
writeRequest(io.netty.buffer.ByteBufAllocator alloc,
ByteBuffer dst) |
handle, handleSingleReply, writeHeaderencodeKeys, fail, getKey, getOpaque, 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 © 2015 Spotify AB. All Rights Reserved.