public class IncrementCommand extends AbstractTextCommand
TextCommandConstants.TextCommandTypetypeCLIENT_ERROR, DELETED, END, ERROR, FLAG_ZERO, MONTH_SECONDS, NOT_FOUND, NOT_STORED, RETURN, RETURN_END, SERVER_ERROR, SPACE, STORED, TOUCHED, VALUE_SPACE| Constructor and Description |
|---|
IncrementCommand(TextCommandConstants.TextCommandType type,
String key,
int value,
boolean noReply) |
| Modifier and Type | Method and Description |
|---|---|
String |
getKey() |
int |
getValue() |
boolean |
readFrom(ByteBuffer source) |
void |
setResponse(byte[] value) |
boolean |
shouldReply() |
boolean |
writeTo(ByteBuffer destination)
Asks the SocketWritable to write its content to the destination ByteBuffer.
|
getRequestId, getSocketTextReader, getSocketTextWriter, getType, init, isUrgent, toStringpublic IncrementCommand(TextCommandConstants.TextCommandType type, String key, int value, boolean noReply)
public boolean writeTo(ByteBuffer destination)
SocketWritabledestination - the ByteBuffer to write to.public boolean readFrom(ByteBuffer source)
public boolean shouldReply()
shouldReply in interface TextCommandshouldReply in class AbstractTextCommandpublic String getKey()
public int getValue()
public void setResponse(byte[] value)
Copyright © 2021 Hazelcast, Inc.. All rights reserved.