GigaSpaces XAP 7.0 API

org.openspaces.core
Class QueryMultiplePartialFailureException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.springframework.core.NestedRuntimeException
                  extended by org.springframework.dao.DataAccessException
                      extended by org.springframework.dao.NonTransientDataAccessException
                          extended by org.springframework.dao.InvalidDataAccessResourceUsageException
                              extended by org.openspaces.core.QueryMultiplePartialFailureException
All Implemented Interfaces:
Serializable

public class QueryMultiplePartialFailureException
extends InvalidDataAccessResourceUsageException

Thrown when not all of the requested number of entries are returned and one or more cluster members are not available.

In order to enable this behavior, the following modifier should be passed ReadModifiers.THROW_PARTIAL_FAILURE to either GigaSpace.readMultiple(Object, int, int) or.

Author:
kimchy
See Also:
Serialized Form

Constructor Summary
QueryMultiplePartialFailureException(com.j_spaces.core.multiple.query.QueryMultiplePartialFailureException cause, ExceptionTranslator exceptionTranslator)
           
 
Method Summary
 Throwable[] getCauses()
          Returns the exceptions raised from the cluster members that were not available.
 Object getResults()
          Returnst the results from the cluster members that were available.
 
Methods inherited from class org.springframework.core.NestedRuntimeException
contains, getMessage, getMostSpecificCause, getRootCause
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

QueryMultiplePartialFailureException

public QueryMultiplePartialFailureException(com.j_spaces.core.multiple.query.QueryMultiplePartialFailureException cause,
                                            ExceptionTranslator exceptionTranslator)
Method Detail

getResults

public Object getResults()
Returnst the results from the cluster members that were available.


getCauses

public Throwable[] getCauses()
Returns the exceptions raised from the cluster members that were not available.


GigaSpaces XAP 7.0 API

Copyright © GigaSpaces.