|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.axonframework.eventhandling.async.RetryPolicy org.axonframework.eventhandling.async.EventProcessor.ProcessingResult
protected static class EventProcessor.ProcessingResult
Class indicating the result of Event Processing and the policy for resuming or retrying in case of errors.
Field Summary | |
---|---|
static EventProcessor.ProcessingResult |
REGULAR
Instance indicating processing was successful and should proceed normally. |
Constructor Summary | |
---|---|
EventProcessor.ProcessingResult(RetryPolicy retryPolicy,
Throwable error)
Creates an instance requiring the given retryPolicy and reporting the given (optional)
error to indicate a failure. |
Method Summary | |
---|---|
Throwable |
getError()
Returns the exception that caused the processing to fail |
boolean |
isFailure()
Indicates whether processing failed |
boolean |
requiresRescheduleEvent()
Indicates whether the scheduler should reschedule the failed event. |
boolean |
requiresRollback()
Indicates whether the scheduler should rollback the Unit of Work wrapping the event handling. |
long |
waitTime()
Returns the time the scheduler should wait before continuing processing. |
Methods inherited from class org.axonframework.eventhandling.async.RetryPolicy |
---|
proceed, retryAfter, skip |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final EventProcessor.ProcessingResult REGULAR
Constructor Detail |
---|
public EventProcessor.ProcessingResult(RetryPolicy retryPolicy, Throwable error)
retryPolicy
and reporting the given (optional)
error
to indicate a failure.
retryPolicy
- The policy indication how to continue processingerror
- An (optional) error to indicate a failure occurredMethod Detail |
---|
public boolean isFailure()
true
if an error was reported, otherwise false
public Throwable getError()
null
if no failure was reportedpublic long waitTime()
RetryPolicy
RetryPolicy.requiresRescheduleEvent()
returns false
.
waitTime
in class RetryPolicy
public boolean requiresRescheduleEvent()
RetryPolicy
requiresRescheduleEvent
in class RetryPolicy
true
if the scheduler should reschedule the failed event, otherwise false
public boolean requiresRollback()
RetryPolicy
requiresRollback
in class RetryPolicy
true
to indicate the scheduler should perform a rollback or false
to request a
commit.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |