Package | Description |
---|---|
org.axonframework.eventhandling.async |
Modifier and Type | Class and Description |
---|---|
protected static class |
EventProcessor.ProcessingResult
Class indicating the result of Event Processing and the policy for resuming or retrying in case of errors.
|
Modifier and Type | Method and Description |
---|---|
RetryPolicy |
ErrorHandler.handleError(Throwable exception,
EventMessage<?> eventMessage,
EventListener eventListener)
Invoked when a handler or the unit of work throws an exception.
|
RetryPolicy |
DefaultErrorHandler.handleError(Throwable exception,
EventMessage<?> eventMessage,
EventListener eventListener) |
static RetryPolicy |
RetryPolicy.proceed()
Tells the scheduler to ignore the failure continue processing.
|
static RetryPolicy |
RetryPolicy.retryAfter(int timeout,
TimeUnit unit)
This policy will roll back the Unit of Work (and the transaction), if any) and reschedule the event for
processing.
|
static RetryPolicy |
RetryPolicy.skip()
This policy will roll back the Unit of Work (and the transaction) and skip the event altogether.
|
Constructor and Description |
---|
DefaultErrorHandler(RetryPolicy retryPolicy)
Initializes the ErrorHandler, making it return the given
retryPolicy when an error occurs. |
EventProcessor.ProcessingResult(RetryPolicy retryPolicy,
Throwable error)
Creates an instance requiring the given
retryPolicy and reporting the given (optional)
error to indicate a failure. |
Copyright © 2010-2014. All Rights Reserved.