public class GetRequest extends AsciiRequest<GetResult<byte[]>> implements GetRequest
| Modifier and Type | Field and Description |
|---|---|
private static byte[] |
CAS_GET |
private byte[] |
cmd |
private static byte[] |
GET |
NEWLINE_BYTES, SPACE_BYTES| Constructor and Description |
|---|
GetRequest(String key,
Charset charset,
boolean withCas) |
| Modifier and Type | Method and Description |
|---|---|
private String |
decodeKey(byte[] key1) |
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 byte[] cmd
public io.netty.buffer.ByteBuf writeRequest(io.netty.buffer.ByteBufAllocator alloc,
ByteBuffer dst)
writeRequest in class Request<GetResult<byte[]>>public void handle(AsciiResponse response) throws IOException
handle in class AsciiRequest<GetResult<byte[]>>IOExceptionprivate String decodeKey(byte[] key1)
Copyright © 2017 Spotify AB. All rights reserved.