public class MultigetRequest extends AsciiRequest<java.util.List<GetResult<byte[]>>> implements MultiRequest<GetResult<byte[]>>
| Modifier and Type | Field and Description |
|---|---|
private static byte[] |
CAS_GET |
private byte[] |
cmd |
private static byte[] |
GET |
private java.util.List<byte[]> |
keys |
NEWLINE_BYTES, SPACE_BYTESkey| Modifier | Constructor and Description |
|---|---|
private |
MultigetRequest(java.util.List<byte[]> keys,
byte[] cmd) |
| Modifier and Type | Method and Description |
|---|---|
Request<java.util.List<GetResult<byte[]>>> |
create(java.util.List<byte[]> keys) |
static MultigetRequest |
create(java.util.List<byte[]> keys,
boolean withCas) |
private int |
findKey(int index,
byte[] key) |
java.util.List<byte[]> |
getKeys() |
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 java.util.List<byte[]> keys
private final byte[] cmd
public static MultigetRequest create(java.util.List<byte[]> keys, boolean withCas)
public io.netty.buffer.ByteBuf writeRequest(io.netty.buffer.ByteBufAllocator alloc,
java.nio.ByteBuffer dst)
writeRequest in interface Request<java.util.List<GetResult<byte[]>>>public void handle(AsciiResponse response, HostAndPort server) throws java.io.IOException
handle in class AsciiRequest<java.util.List<GetResult<byte[]>>>java.io.IOExceptionprivate int findKey(int index,
byte[] key)
public java.util.List<byte[]> getKeys()
getKeys in interface MultiRequest<GetResult<byte[]>>public Request<java.util.List<GetResult<byte[]>>> create(java.util.List<byte[]> keys)
create in interface MultiRequest<GetResult<byte[]>>Copyright © 2020 Spotify AB. All Rights Reserved.