public abstract class BinaryRequest<V> extends Request<V>
| Modifier and Type | Field and Description |
|---|---|
protected static int |
HEADER_SIZE |
protected static byte |
MAGIC_NUMBER |
| Modifier | Constructor and Description |
|---|---|
protected |
BinaryRequest(byte[] key,
int opaque) |
protected |
BinaryRequest(String key,
Charset charset,
int opaque) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
handle(BinaryResponse response) |
void |
handle(Object response) |
protected ResponsePacket |
handleSingleReply(BinaryResponse replies) |
void |
writeHeader(ByteBuffer dst,
byte opCode,
int extraLength,
int valueLength,
long cas,
int opaque) |
encodeKeys, fail, getKey, getOpaque, succeed, toBuffer, toBuffer, writeRequestprotected static final int HEADER_SIZE
protected static final byte MAGIC_NUMBER
public void writeHeader(ByteBuffer dst, byte opCode, int extraLength, int valueLength, long cas, int opaque)
protected ResponsePacket handleSingleReply(BinaryResponse replies) throws IOException
IOExceptionpublic void handle(Object response) throws IOException
handle in class Request<V>IOExceptionprotected abstract void handle(BinaryResponse response) throws IOException
IOExceptionCopyright © 2015 Spotify AB. All Rights Reserved.