GigaSpaces XAP 9.5 API

org.openspaces.core
Class TakeByIdsException.TakeByIdResult

java.lang.Object
  extended by org.openspaces.core.TakeByIdsException.TakeByIdResult
Enclosing class:
TakeByIdsException

public static class TakeByIdsException.TakeByIdResult
extends Object

Holds a TakeByIdsException 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 TakeByIdsException.TakeByIdResult.TakeByIdResultType
          Determines the result type of a take by id operation result.
 
Constructor Summary
protected TakeByIdsException.TakeByIdResult(com.gigaspaces.client.ReadTakeByIdResult result, ExceptionTranslator exceptionTranslator)
           
 
Method Summary
 Throwable getError()
           
 Object getId()
           
 Object getObject()
           
 TakeByIdsException.TakeByIdResult.TakeByIdResultType getResultType()
           
 boolean isError()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TakeByIdsException.TakeByIdResult

protected TakeByIdsException.TakeByIdResult(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 TakeByIdsException.TakeByIdResult.TakeByIdResultType getResultType()
Returns:
This result's object type.

GigaSpaces XAP 9.5 API

Copyright © GigaSpaces.