com.hazelcast.spi.impl.operationservice.impl.responses
Class ErrorResponse

java.lang.Object
  extended by com.hazelcast.spi.impl.operationservice.impl.responses.Response
      extended by com.hazelcast.spi.impl.operationservice.impl.responses.ErrorResponse
All Implemented Interfaces:
DataSerializable, IdentifiedDataSerializable

public class ErrorResponse
extends Response


Field Summary
 
Fields inherited from class com.hazelcast.spi.impl.operationservice.impl.responses.Response
callId, urgent
 
Constructor Summary
ErrorResponse()
           
ErrorResponse(Throwable cause, long callId, boolean urgent)
           
 
Method Summary
 Throwable getCause()
           
 int getId()
          Returns type identifier for this class.
 void readData(ObjectDataInput in)
          Reads fields from the input stream
 String toString()
           
 void writeData(ObjectDataOutput out)
          Writes object fields to output stream
 
Methods inherited from class com.hazelcast.spi.impl.operationservice.impl.responses.Response
getCallId, getFactoryId, isUrgent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ErrorResponse

public ErrorResponse()

ErrorResponse

public ErrorResponse(Throwable cause,
                     long callId,
                     boolean urgent)
Method Detail

getCause

public Throwable getCause()

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:
writeData in interface DataSerializable
Overrides:
writeData in 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:
readData in interface DataSerializable
Overrides:
readData in class Response
Parameters:
in - input
Throws:
IOException

toString

public String toString()
Overrides:
toString in class Object


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