public class EventExternalFailureException extends EngineRuntimeException
EventActionHandler
interface
in asynchronous event processing.
Throw this exception to indicate an external failure, and specify wait time for the next retry.
The wait time that you pass into the constructor overwrites the default retry wait time from the system configuration
(set in GCD).Modifier and Type | Field and Description |
---|---|
static int |
MAX_WAIT_TIME_SECONDS |
static int |
MIN_WAIT_TIME_SECONDS |
Constructor and Description |
---|
EventExternalFailureException(int waitTimeInSecond)
Constructs the exception with a retry wait time.
|
Modifier and Type | Method and Description |
---|---|
int |
getWaitTimeInSecond()
Gets the value set in the constructor that specifies the wait time
before retrying an external operation that previously failed.
|
getAsErrorStack, getExceptionCode, getLocalizedMessage, getMessage, mergeStackTraces, readExternal, toString, writeExternal
public static final int MIN_WAIT_TIME_SECONDS
public static final int MAX_WAIT_TIME_SECONDS
public EventExternalFailureException(int waitTimeInSecond)
waitTimeInSecond
- The number of seconds to wait before retrying the external operation that previously failed.
Set this parameter to a value of 1 to 86400 seconds.© Copyright IBM Corporation 2006, 2015. All rights reserved.