|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<RetryPolicy>
org.axonframework.eventhandling.RetryPolicy
public enum RetryPolicy
This policy tells the EventProcessingScheduler how it should deal with failed transactions.
SKIP_FAILED_EVENT will tell the scheduler to ignore the failure and schedule a new transaction to continue
processing. RETRY_TRANSACTION tells the scheduler to offer all the events in the failed transaction to
the event listener in a new transaction. RETRY_LAST_EVENT tell the scheduler to only offer the last
event form this transaction to the event listener. This event will be handled in a new transaction.
| Enum Constant Summary | |
|---|---|
RETRY_LAST_EVENT
Tells the scheduler to only offer the last event form this transaction to the event listener. |
|
RETRY_TRANSACTION
Tells the scheduler to offer all the events in the failed transaction to the event listener in a new transaction. |
|
SKIP_FAILED_EVENT
Tells the scheduler to ignore the failure and schedule a new transaction to continue processing. |
|
| Method Summary | |
|---|---|
static RetryPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static RetryPolicy[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final RetryPolicy SKIP_FAILED_EVENT
public static final RetryPolicy RETRY_TRANSACTION
public static final RetryPolicy RETRY_LAST_EVENT
| Method Detail |
|---|
public static RetryPolicy[] values()
for (RetryPolicy c : RetryPolicy.values()) System.out.println(c);
public static RetryPolicy valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||