com.hazelcast.cache.impl
Class CacheClearResponse

java.lang.Object
  extended by com.hazelcast.cache.impl.CacheClearResponse
All Implemented Interfaces:
DataSerializable, IdentifiedDataSerializable, Serializable

public class CacheClearResponse
extends Object
implements IdentifiedDataSerializable, Serializable

This class is a simple object wrapper to be used by CacheClearOperation. The response returned or exception thrown is wrapped into a single CacheClearResponse so that multiple operations' result can be returned using a collection.

See Also:
Serialized Form

Constructor Summary
CacheClearResponse()
           
CacheClearResponse(Object response)
           
 
Method Summary
 int getFactoryId()
          Returns DataSerializableFactory factory id for this class.
 int getId()
          Returns type identifier for this class.
 Object getResponse()
           
 void readData(ObjectDataInput in)
          Reads fields from the input stream
 void writeData(ObjectDataOutput out)
          Writes object fields to output stream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CacheClearResponse

public CacheClearResponse()

CacheClearResponse

public CacheClearResponse(Object response)
Method Detail

getResponse

public Object getResponse()

getFactoryId

public int getFactoryId()
Description copied from interface: IdentifiedDataSerializable
Returns DataSerializableFactory factory id for this class.

Specified by:
getFactoryId in interface IdentifiedDataSerializable
Returns:
factory id

getId

public int getId()
Description copied from interface: IdentifiedDataSerializable
Returns type identifier for this class. Id should be unique per DataSerializableFactory.

Specified by:
getId in interface IdentifiedDataSerializable
Returns:
type id

writeData

public void writeData(ObjectDataOutput out)
               throws IOException
Description copied from interface: DataSerializable
Writes object fields to output stream

Specified by:
writeData in interface DataSerializable
Parameters:
out - output
Throws:
IOException

readData

public void readData(ObjectDataInput in)
              throws IOException
Description copied from interface: DataSerializable
Reads fields from the input stream

Specified by:
readData in interface DataSerializable
Parameters:
in - input
Throws:
IOException


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