public class SetRequest extends BinaryRequest<MemcacheStatus> implements SetRequest
| Modifier and Type | Field and Description |
|---|---|
private long |
cas |
private OpCode |
opcode |
private int |
ttl |
private byte[] |
value |
HEADER_SIZE, MAGIC_NUMBER, opaquekey| Constructor and Description |
|---|
SetRequest(OpCode opcode,
byte[] key,
byte[] value,
int ttl,
long cas) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getValue() |
void |
handle(BinaryResponse replies,
HostAndPort server) |
private static io.netty.buffer.ByteBuf |
toBufferWithValue(io.netty.buffer.ByteBufAllocator alloc,
java.nio.ByteBuffer dst,
byte[] value) |
io.netty.buffer.ByteBuf |
writeRequest(io.netty.buffer.ByteBufAllocator alloc,
java.nio.ByteBuffer dst) |
handle, handleSingleReply, writeHeaderasFuture, encodeKey, encodeKeys, fail, getKey, succeed, toBuffer, toBufferacceptEither, acceptEitherAsync, acceptEitherAsync, allOf, anyOf, applyToEither, applyToEitherAsync, applyToEitherAsync, cancel, complete, completedFuture, completeExceptionally, exceptionally, get, get, getNow, getNumberOfDependents, handle, handleAsync, handleAsync, isCancelled, isCompletedExceptionally, isDone, join, obtrudeException, obtrudeValue, runAfterBoth, runAfterBothAsync, runAfterBothAsync, runAfterEither, runAfterEitherAsync, runAfterEitherAsync, runAsync, runAsync, supplyAsync, supplyAsync, thenAccept, thenAcceptAsync, thenAcceptAsync, thenAcceptBoth, thenAcceptBothAsync, thenAcceptBothAsync, thenApply, thenApplyAsync, thenApplyAsync, thenCombine, thenCombineAsync, thenCombineAsync, thenCompose, thenComposeAsync, thenComposeAsync, thenRun, thenRunAsync, thenRunAsync, toCompletableFuture, toString, whenComplete, whenCompleteAsync, whenCompleteAsyncprivate final OpCode opcode
private final byte[] value
private final int ttl
private final long cas
public SetRequest(OpCode opcode, byte[] key, byte[] value, int ttl, long cas)
public io.netty.buffer.ByteBuf writeRequest(io.netty.buffer.ByteBufAllocator alloc,
java.nio.ByteBuffer dst)
writeRequest in interface Request<MemcacheStatus>private static io.netty.buffer.ByteBuf toBufferWithValue(io.netty.buffer.ByteBufAllocator alloc,
java.nio.ByteBuffer dst,
byte[] value)
public void handle(BinaryResponse replies, HostAndPort server) throws java.io.IOException
handle in class BinaryRequest<MemcacheStatus>java.io.IOExceptionpublic byte[] getValue()
getValue in interface SetRequestCopyright © 2020 Spotify AB. All Rights Reserved.