Class AggregationTimeoutException
- All Implemented Interfaces:
Serializable
AggregationSet.withExecutionTimeout(long, TimeUnit) or, when the call sets none, the space's default
("com.gs.aggregation.default-timeout-ms").
A partition throws it when its time is up - while scanning, which stops the scan and frees the thread it
ran on, or as it finishes, if it finished late. A caller that set a timeout of its own and has had no answer by
then, plus a short grace, stops waiting and throws it itself, which covers what a partition cannot report: a
partition that does not answer at all, and a single aggregate() call that does not return. The message
says which of the two it was; in the second case the partition may still be working.
Through GigaSpace it reaches the caller as org.openspaces.core.SpaceTimeoutException
with this exception as its cause. A caller older than 18.0.1 receives a plain
OperationTimeoutException with the same message, since it does not know this class.
- Since:
- 18.0.1
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class OperationTimeoutException
fillInStackTraceMethods inherited from class Throwable
addSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
AggregationTimeoutException
- Parameters:
message- what timed out and wheretimeout- the execution timeout that was exceeded, in milliseconds
-
-
Method Details
-
getTimeout
public long getTimeout()- Returns:
- the execution timeout that was exceeded, in milliseconds
-