com.hazelcast.internal.ascii.memcache
public class SetCommand extends AbstractTextCommand
type
Constructor and Description |
---|
SetCommand(TextCommandConstants.TextCommandType type,
String key,
int flag,
int expiration,
int valueLen,
boolean noreply) |
Modifier and Type | Method and Description |
---|---|
int |
getExpiration() |
int |
getFlag() |
String |
getKey() |
byte[] |
getValue() |
boolean |
readFrom(ByteBuffer cb) |
void |
setResponse(byte[] value) |
boolean |
shouldReply() |
String |
toString() |
boolean |
writeTo(ByteBuffer bb)
Asks the SocketWritable to write its content to the destination ByteBuffer.
|
getRequestId, getSocketTextReader, getSocketTextWriter, getType, init, isUrgent
public SetCommand(TextCommandConstants.TextCommandType type, String key, int flag, int expiration, int valueLen, boolean noreply)
public boolean readFrom(ByteBuffer cb)
public void setResponse(byte[] value)
public boolean writeTo(ByteBuffer bb)
SocketWritable
bb
- the ByteBuffer to write to.public boolean shouldReply()
shouldReply
in interface TextCommand
shouldReply
in class AbstractTextCommand
public int getExpiration()
public String getKey()
public byte[] getValue()
public int getFlag()
public String toString()
toString
in class AbstractTextCommand
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.