com.hazelcast.ascii.memcache
Class DeleteCommand

java.lang.Object
  extended by com.hazelcast.ascii.AbstractTextCommand
      extended by com.hazelcast.ascii.memcache.DeleteCommand
All Implemented Interfaces:
TextCommand, SocketReadable, SocketWritable

public class DeleteCommand
extends AbstractTextCommand


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

Constructor Detail

DeleteCommand

public DeleteCommand(String key,
                     int expiration,
                     boolean noreply)
Method Detail

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()

toString

public String toString()
Overrides:
toString in class AbstractTextCommand


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.