public static enum RetryLaterException.Method extends Enum<RetryLaterException.Method>
| Enum Constant and Description |
|---|
EXACT_DATE |
EXPONENTIAL |
LINEAR |
| Modifier and Type | Method and Description |
|---|---|
abstract Date |
nextInvocation(Date lastCall,
int tries,
long delay)
Computes the next time to reinvoke the asynchronous call after the call was rejected.
|
static RetryLaterException.Method |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RetryLaterException.Method[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RetryLaterException.Method LINEAR
public static final RetryLaterException.Method EXPONENTIAL
public static final RetryLaterException.Method EXACT_DATE
public static RetryLaterException.Method[] values()
for (RetryLaterException.Method c : RetryLaterException.Method.values()) System.out.println(c);
public static RetryLaterException.Method valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic abstract Date nextInvocation(Date lastCall, int tries, long delay)
lastCall - the last time the call was scheduled.tries - the number of calls done (and failed).delay - the delay as stated in the Asynchronous annotation.null if this call shall be discarded.Copyright © 2017 SAP SE. All Rights Reserved.