public class GetRequest extends BinaryRequest<GetResult<byte[]>> implements GetRequest
| Modifier and Type | Field and Description |
|---|---|
private OpCode |
opcode |
private int |
ttl |
HEADER_SIZE, MAGIC_NUMBER, opaquekey| Constructor and Description |
|---|
GetRequest(byte[] key,
OpCode opcode,
int ttl) |
| Modifier and Type | Method and Description |
|---|---|
void |
handle(BinaryResponse replies,
HostAndPort server) |
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 int ttl
public GetRequest(byte[] key,
OpCode opcode,
int ttl)
public io.netty.buffer.ByteBuf writeRequest(io.netty.buffer.ByteBufAllocator alloc,
java.nio.ByteBuffer dst)
writeRequest in interface Request<GetResult<byte[]>>public void handle(BinaryResponse replies, HostAndPort server) throws java.io.IOException
handle in class BinaryRequest<GetResult<byte[]>>java.io.IOExceptionCopyright © 2020 Spotify AB. All Rights Reserved.