com.hazelcast.ascii.memcache
Class IncrementCommand

java.lang.Object
  extended by com.hazelcast.ascii.AbstractTextCommand
      extended by 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


Field Summary
 
Fields inherited from class com.hazelcast.ascii.AbstractTextCommand
type
 
Constructor Summary
IncrementCommand(TextCommandConstants.TextCommandType type, String key, int value, boolean noReply)
           
 
Method Summary
 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.
 
Methods inherited from class com.hazelcast.ascii.AbstractTextCommand
getRequestId, getSocketTextReader, getSocketTextWriter, getType, init, isUrgent, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IncrementCommand

public IncrementCommand(TextCommandConstants.TextCommandType type,
                        String key,
                        int value,
                        boolean noReply)
Method Detail

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.