public class SetRequest extends BinaryRequest<MemcacheStatus> implements SetRequest
| Modifier and Type | Field and Description |
|---|---|
private long |
cas |
private byte |
opcode |
private int |
ttl |
private byte[] |
value |
HEADER_SIZE, MAGIC_NUMBER, opaque, opaqueSet| Constructor and Description |
|---|
SetRequest(byte opcode,
String key,
Charset charset,
byte[] value,
int ttl,
long cas) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getValue() |
void |
handle(BinaryResponse replies) |
private static io.netty.buffer.ByteBuf |
toBufferWithValue(io.netty.buffer.ByteBufAllocator alloc,
ByteBuffer dst,
byte[] value) |
io.netty.buffer.ByteBuf |
writeRequest(io.netty.buffer.ByteBufAllocator alloc,
ByteBuffer dst) |
getOpaque, handle, handleSingleReply, setOpaque, writeHeaderencodeKey, encodeKeys, fail, getKey, succeed, toBuffer, toBufferprivate final byte opcode
private final byte[] value
private final int ttl
private final long cas
public io.netty.buffer.ByteBuf writeRequest(io.netty.buffer.ByteBufAllocator alloc,
ByteBuffer dst)
writeRequest in class Request<MemcacheStatus>private static io.netty.buffer.ByteBuf toBufferWithValue(io.netty.buffer.ByteBufAllocator alloc,
ByteBuffer dst,
byte[] value)
public void handle(BinaryResponse replies) throws IOException
handle in class BinaryRequest<MemcacheStatus>IOExceptionpublic byte[] getValue()
getValue in interface SetRequestCopyright © 2017 Spotify AB. All rights reserved.