public abstract class AbstractRequest<V> extends java.util.concurrent.CompletableFuture<V> implements Request<V>
| Modifier and Type | Field and Description |
|---|---|
protected byte[] |
key |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractRequest(byte[] key) |
| Modifier and Type | Method and Description |
|---|---|
java.util.concurrent.CompletionStage<V> |
asFuture() |
static byte[] |
encodeKey(java.lang.String key,
java.nio.charset.Charset charset,
int maxKeyLength) |
static java.util.List<byte[]> |
encodeKeys(java.util.List<java.lang.String> keys,
java.nio.charset.Charset charset,
int maxKeyLength) |
void |
fail(java.lang.Throwable e,
HostAndPort address) |
byte[] |
getKey() |
void |
succeed(V result) |
protected static io.netty.buffer.ByteBuf |
toBuffer(io.netty.buffer.ByteBufAllocator alloc,
java.nio.ByteBuffer dst) |
protected static io.netty.buffer.ByteBuf |
toBuffer(io.netty.buffer.ByteBufAllocator alloc,
java.nio.ByteBuffer dst,
int extra) |
acceptEither, 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, waithandle, writeRequestprotected static io.netty.buffer.ByteBuf toBuffer(io.netty.buffer.ByteBufAllocator alloc,
java.nio.ByteBuffer dst)
public void fail(java.lang.Throwable e,
HostAndPort address)
public java.util.concurrent.CompletionStage<V> asFuture()
public void succeed(V result)
protected static io.netty.buffer.ByteBuf toBuffer(io.netty.buffer.ByteBufAllocator alloc,
java.nio.ByteBuffer dst,
int extra)
public static byte[] encodeKey(java.lang.String key,
java.nio.charset.Charset charset,
int maxKeyLength)
public static java.util.List<byte[]> encodeKeys(java.util.List<java.lang.String> keys,
java.nio.charset.Charset charset,
int maxKeyLength)
Copyright © 2020 Spotify AB. All Rights Reserved.