public class IncrRequest extends AsciiRequest<java.lang.Long>
| Modifier and Type | Field and Description |
|---|---|
private long |
by |
private static byte[] |
DECR_CMD |
private static byte[] |
INCR_CMD |
private byte[] |
operation |
NEWLINE_BYTES, SPACE_BYTESkey| Modifier | Constructor and Description |
|---|---|
private |
IncrRequest(byte[] operation,
byte[] key,
long by) |
| Modifier and Type | Method and Description |
|---|---|
static IncrRequest |
createDecr(byte[] key,
long value) |
static IncrRequest |
createIncr(byte[] key,
long value) |
long |
getBy() |
void |
handle(AsciiResponse response,
HostAndPort server) |
long |
multiplier() |
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[] INCR_CMD
private static final byte[] DECR_CMD
private final byte[] operation
private final long by
public static IncrRequest createIncr(byte[] key, long value)
public static IncrRequest createDecr(byte[] key, long value)
public io.netty.buffer.ByteBuf writeRequest(io.netty.buffer.ByteBufAllocator alloc,
java.nio.ByteBuffer dst)
public void handle(AsciiResponse response, HostAndPort server) throws java.io.IOException
handle in class AsciiRequest<java.lang.Long>java.io.IOExceptionpublic long getBy()
public long multiplier()
Copyright © 2020 Spotify AB. All Rights Reserved.