GigaSpaces XAP 9.7.2 API

org.openspaces.core
Class ReadByIdsException.ReadByIdResult

java.lang.Object
  extended by org.openspaces.core.ReadByIdsException.ReadByIdResult
Enclosing class:
ReadByIdsException

public static class ReadByIdsException.ReadByIdResult
extends Object

Holds a ReadByIdsException result. The result contains the object's Id, the result type, the read object and the thrown exception.

Since:
7.1.1
Author:
idan

Nested Class Summary
static class ReadByIdsException.ReadByIdResult.ReadByIdResultType
          Determines the result type of a read by id operation result.
 
Constructor Summary
protected ReadByIdsException.ReadByIdResult(com.gigaspaces.client.ReadTakeByIdResult result, ExceptionTranslator exceptionTranslator)
           
 
Method Summary
 Throwable getError()
           
 Object getId()
           
 Object getObject()
           
 ReadByIdsException.ReadByIdResult.ReadByIdResultType getResultType()
           
 boolean isError()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReadByIdsException.ReadByIdResult

protected ReadByIdsException.ReadByIdResult(com.gigaspaces.client.ReadTakeByIdResult result,
                                            ExceptionTranslator exceptionTranslator)
Method Detail

getError

public Throwable getError()
Returns:
On error returns the exception that occurred, otherwise null.

getId

public Object getId()
Returns:
The object Id this result is relevant for.

getObject

public Object getObject()
Returns:
The read object for this result or null if no object was found or an exception occurred.

isError

public boolean isError()
Returns:
True if an exception is associated with this result.

getResultType

public ReadByIdsException.ReadByIdResult.ReadByIdResultType getResultType()
Returns:
This result's object type.

GigaSpaces XAP 9.7.2 API

Copyright © GigaSpaces.