Package | Description |
---|---|
org.springframework.jms.listener |
This package contains the base message listener container facility.
|
org.springframework.scheduling.concurrent |
Scheduling convenience classes for the JDK 1.5+ Executor mechanism
in the
java.util.concurrent package, allowing to set up a
ThreadPoolExecutor or ScheduledThreadPoolExecutor as a bean in a Spring
context. |
org.springframework.scheduling.support |
Generic support classes for scheduling.
|
Modifier and Type | Method and Description |
---|---|
void |
AbstractMessageListenerContainer.setErrorHandler(ErrorHandler errorHandler)
Set an ErrorHandler to be invoked in case of any uncaught exceptions thrown
while processing a Message.
|
Modifier and Type | Method and Description |
---|---|
void |
ConcurrentTaskScheduler.setErrorHandler(ErrorHandler errorHandler)
Provide an
ErrorHandler strategy. |
void |
ThreadPoolTaskScheduler.setErrorHandler(ErrorHandler errorHandler)
Provide an
ErrorHandler strategy. |
Modifier and Type | Field and Description |
---|---|
static ErrorHandler |
TaskUtils.LOG_AND_PROPAGATE_ERROR_HANDLER
An ErrorHandler strategy that will log at error level and then
re-throw the Exception.
|
static ErrorHandler |
TaskUtils.LOG_AND_SUPPRESS_ERROR_HANDLER
An ErrorHandler strategy that will log the Exception but perform
no further handling.
|
Modifier and Type | Method and Description |
---|---|
static ErrorHandler |
TaskUtils.getDefaultErrorHandler(boolean isRepeatingTask)
Return the default
ErrorHandler implementation based on the boolean
value indicating whether the task will be repeating or not. |
Modifier and Type | Method and Description |
---|---|
static DelegatingErrorHandlingRunnable |
TaskUtils.decorateTaskWithErrorHandler(Runnable task,
ErrorHandler errorHandler,
boolean isRepeatingTask)
Decorates the task for error handling.
|
Constructor and Description |
---|
DelegatingErrorHandlingRunnable(Runnable delegate,
ErrorHandler errorHandler)
Create a new DelegatingErrorHandlingRunnable.
|
Copyright © 2015. All rights reserved.