public class MultigetRequest extends BinaryRequest<java.util.List<GetResult<byte[]>>> implements MultiRequest<GetResult<byte[]>>
| Modifier and Type | Field and Description |
|---|---|
private java.util.List<byte[]> |
keys |
private int |
ttl |
HEADER_SIZE, MAGIC_NUMBER, opaquekey| Modifier | Constructor and Description |
|---|---|
private |
MultigetRequest(java.util.List<byte[]> keys,
int ttl) |
| 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,
int ttl) |
java.util.List<byte[]> |
getKeys() |
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, whenCompleteAsyncpublic static MultigetRequest create(java.util.List<byte[]> keys, int ttl)
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(BinaryResponse replies, HostAndPort server) throws java.io.IOException
handle in class BinaryRequest<java.util.List<GetResult<byte[]>>>java.io.IOExceptionpublic 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.