com.hazelcast.ascii.memcache
Class IncrementCommand
java.lang.Object
com.hazelcast.ascii.AbstractTextCommand
com.hazelcast.ascii.memcache.IncrementCommand
- All Implemented Interfaces:
- TextCommand, SocketReadable, SocketWritable
public class IncrementCommand
- extends AbstractTextCommand
User: sancar
Date: 3/8/13
Time: 3:33 PM
IncrementCommand
public IncrementCommand(TextCommandConstants.TextCommandType type,
String key,
int value,
boolean noReply)
writeTo
public boolean writeTo(ByteBuffer destination)
- Description copied from interface:
SocketWritable
- Asks the SocketWritable to write its content to the destination ByteBuffer.
- Parameters:
destination
- the ByteBuffer to write to.
- Returns:
- todo: unclear what return value means.
readFrom
public boolean readFrom(ByteBuffer source)
shouldReply
public boolean shouldReply()
- Specified by:
shouldReply
in interface TextCommand
- Overrides:
shouldReply
in class AbstractTextCommand
getKey
public String getKey()
getValue
public int getValue()
setResponse
public void setResponse(byte[] value)
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.