public static enum RetryLaterException.Method extends java.lang.Enum<RetryLaterException.Method>
| Enum Constant and Description |
|---|
EXACT_DATE |
EXPONENTIAL |
LINEAR |
| Modifier and Type | Method and Description |
|---|---|
abstract java.util.Date |
nextInvocation(java.util.Date lastCall,
int tries,
long delay)
Computes the next time to reinvoke the asynchronous call after the call was rejected.
|
static RetryLaterException.Method |
valueOf(java.lang.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(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic abstract java.util.Date nextInvocation(java.util.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 © 2018 SAP SE. All Rights Reserved.