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_BYTESkey| Constructor and Description |
|---|
GetRequest(byte[] key,
boolean withCas) |
| Modifier and Type | Method and Description |
|---|---|
private java.lang.String |
decodeKey(byte[] key1) |
void |
handle(AsciiResponse response,
HostAndPort server) |
io.netty.buffer.ByteBuf |
writeRequest(io.netty.buffer.ByteBufAllocator alloc,
java.nio.ByteBuffer dst) |
handleasFuture, 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 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,
java.nio.ByteBuffer dst)
writeRequest in interface Request<GetResult<byte[]>>public void handle(AsciiResponse response, HostAndPort server) throws java.io.IOException
handle in class AsciiRequest<GetResult<byte[]>>java.io.IOExceptionprivate java.lang.String decodeKey(byte[] key1)
Copyright © 2020 Spotify AB. All Rights Reserved.