GigaSpaces XAP 10.0.1 API

org.openspaces.memcached.protocol
Class ResponseMessage

java.lang.Object
  extended by org.openspaces.memcached.protocol.ResponseMessage
All Implemented Interfaces:
Serializable

public final class ResponseMessage
extends Object
implements Serializable

Represents the response to a command.

See Also:
Serialized Form

Field Summary
 CommandMessage cmd
           
 SpaceCache.DeleteResponse deleteResponse
           
 LocalCacheElement[] elements
           
 boolean flushSuccess
           
 Integer incrDecrResponse
           
 SpaceCache.StoreResponse response
           
 Map<String,Set<String>> stats
           
 String version
           
 
Constructor Summary
ResponseMessage(CommandMessage cmd)
           
 
Method Summary
 ResponseMessage withDeleteResponse(SpaceCache.DeleteResponse deleteResponse)
           
 ResponseMessage withElements(LocalCacheElement[] elements)
           
 ResponseMessage withFlushResponse(boolean success)
           
 ResponseMessage withIncrDecrResponse(Integer incrDecrResp)
           
 ResponseMessage withResponse(SpaceCache.StoreResponse response)
           
 ResponseMessage withStatResponse(Map<String,Set<String>> stats)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cmd

public CommandMessage cmd

elements

public LocalCacheElement[] elements

response

public SpaceCache.StoreResponse response

stats

public Map<String,Set<String>> stats

version

public String version

deleteResponse

public SpaceCache.DeleteResponse deleteResponse

incrDecrResponse

public Integer incrDecrResponse

flushSuccess

public boolean flushSuccess
Constructor Detail

ResponseMessage

public ResponseMessage(CommandMessage cmd)
Method Detail

withElements

public ResponseMessage withElements(LocalCacheElement[] elements)

withResponse

public ResponseMessage withResponse(SpaceCache.StoreResponse response)

withDeleteResponse

public ResponseMessage withDeleteResponse(SpaceCache.DeleteResponse deleteResponse)

withIncrDecrResponse

public ResponseMessage withIncrDecrResponse(Integer incrDecrResp)

withStatResponse

public ResponseMessage withStatResponse(Map<String,Set<String>> stats)

withFlushResponse

public ResponseMessage withFlushResponse(boolean success)

GigaSpaces XAP 10.0.1 API

Copyright © GigaSpaces.