public abstract class BinaryRequest<V> extends AbstractRequest<V>
| Modifier and Type | Field and Description |
|---|---|
protected static int |
HEADER_SIZE |
protected static byte |
MAGIC_NUMBER |
protected int |
opaque |
key| Modifier | Constructor and Description |
|---|---|
protected |
BinaryRequest(byte[] key) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
handle(BinaryResponse response,
HostAndPort server) |
void |
handle(java.lang.Object response,
HostAndPort server) |
protected ResponsePacket |
handleSingleReply(BinaryResponse replies) |
void |
writeHeader(java.nio.ByteBuffer dst,
OpCode opCode,
int extraLength,
int valueLength,
long cas) |
asFuture, 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, whenCompleteAsyncclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitwriteRequestprotected static final int HEADER_SIZE
protected static final byte MAGIC_NUMBER
protected final int opaque
public void writeHeader(java.nio.ByteBuffer dst,
OpCode opCode,
int extraLength,
int valueLength,
long cas)
protected ResponsePacket handleSingleReply(BinaryResponse replies) throws java.io.IOException
java.io.IOExceptionpublic void handle(java.lang.Object response,
HostAndPort server)
throws java.io.IOException
java.io.IOExceptionprotected abstract void handle(BinaryResponse response, HostAndPort server) throws java.io.IOException
java.io.IOExceptionCopyright © 2020 Spotify AB. All Rights Reserved.