com.hazelcast.spi.impl
Class NormalResponse
java.lang.Object
   com.hazelcast.spi.impl.Response
com.hazelcast.spi.impl.Response
       com.hazelcast.spi.impl.NormalResponse
com.hazelcast.spi.impl.NormalResponse
- All Implemented Interfaces: 
- DataSerializable, IdentifiedDataSerializable
- public class NormalResponse 
- extends Response
A NormalResponse is send when an Operation needs to return a value. This response value can a 'normal' value,
 but it can also contain the exception thrown.
 
 Currently there is a limitation in the design that needs to be dealt with in the future: there is no distinction
 made between an exception thrown or an exception returned as a regular value. In such a case, Hazelcast will
 always rethrow the exception.
 
 The NormalResponse contains the actual 'value' but also the callid of that operation
 and the backup count. Based on the backup count, the invoker of the operation
 knows when all the backups have completed.
- Author:
- mdogan 4/10/13
 
 
 
 
 
 
NormalResponse
public NormalResponse()
NormalResponse
public NormalResponse(Object value,
                      long callId,
                      int backupCount,
                      boolean urgent)
getValue
public Object getValue()
- 
 
getBackupCount
public int getBackupCount()
- 
 
getId
public int getId()
- Description copied from interface: IdentifiedDataSerializable
- Returns type identifier for this class. Id should be unique per DataSerializableFactory.
 
- 
- Returns:
- type id
 
writeData
public void writeData(ObjectDataOutput out)
               throws IOException
- Description copied from interface: DataSerializable
- Writes object fields to output stream
 
- 
- Specified by:
- writeDatain interface- DataSerializable
- Overrides:
- writeDatain class- Response
 
- 
- 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:
- readDatain interface- DataSerializable
- Overrides:
- readDatain class- Response
 
- 
- Parameters:
- in- input
- Throws:
- IOException
 
toString
public String toString()
- 
- Overrides:
- toStringin class- Object
 
- 
 
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.