Class AggregationTimeoutException

All Implemented Interfaces:
Serializable

public class AggregationTimeoutException extends OperationTimeoutException
Thrown when an aggregation runs longer than its execution timeout - the one set by 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 Details

    • AggregationTimeoutException

      public AggregationTimeoutException(String message, long timeout)
      Parameters:
      message - what timed out and where
      timeout - the execution timeout that was exceeded, in milliseconds
  • Method Details

    • getTimeout

      public long getTimeout()
      Returns:
      the execution timeout that was exceeded, in milliseconds