com.hazelcast.ascii.memcache
Class SetCommand
java.lang.Object
com.hazelcast.ascii.AbstractTextCommand
com.hazelcast.ascii.memcache.SetCommand
- All Implemented Interfaces:
- TextCommand, SocketReadable, SocketWritable
public class SetCommand
- extends AbstractTextCommand
SetCommand
public SetCommand(TextCommandConstants.TextCommandType type,
String key,
int flag,
int expiration,
int valueLen,
boolean noreply)
readFrom
public boolean readFrom(ByteBuffer cb)
setResponse
public void setResponse(byte[] value)
writeTo
public boolean writeTo(ByteBuffer bb)
- Description copied from interface:
SocketWritable
- Asks the SocketWritable to write its content to the destination ByteBuffer.
- Parameters:
bb
- the ByteBuffer to write to.
- Returns:
- todo: unclear what return value means.
shouldReply
public boolean shouldReply()
- Specified by:
shouldReply
in interface TextCommand
- Overrides:
shouldReply
in class AbstractTextCommand
getExpiration
public int getExpiration()
getKey
public String getKey()
getValue
public byte[] getValue()
getFlag
public int getFlag()
toString
public String toString()
- Overrides:
toString
in class AbstractTextCommand
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.