接口的使用
org.springframework.util.ErrorHandler
使用ErrorHandler的程序包 程序包 说明 org.springframework.context.event Support classes for application events, like standard context events.org.springframework.jms.config Support package for declarative messaging configuration, with Java configuration and XML schema support.org.springframework.jms.listener This package contains the base message listener container facility.org.springframework.scheduling.commonj Convenience classes for scheduling based on the CommonJ WorkManager/TimerManager facility, as supported by IBM WebSphere 6.0+ and BEA WebLogic 9.0+.org.springframework.scheduling.concurrent Scheduling convenience classes for thejava.util.concurrent
andjavax.enterprise.concurrent
packages, allowing to set up a ThreadPoolExecutor or ScheduledThreadPoolExecutor as a bean in a Spring context.org.springframework.scheduling.support Generic support classes for scheduling.org.springframework.context.event中ErrorHandler的使用
返回ErrorHandler的org.springframework.context.event中的方法 修饰符和类型 方法 说明 protected ErrorHandler
SimpleApplicationEventMulticaster. getErrorHandler()
Return the current error handler for this multicaster.参数类型为ErrorHandler的org.springframework.context.event中的方法 修饰符和类型 方法 说明 void
SimpleApplicationEventMulticaster. setErrorHandler(ErrorHandler errorHandler)
Set theErrorHandler
to invoke in case an exception is thrown from a listener.org.springframework.jms.config中ErrorHandler的使用
参数类型为ErrorHandler的org.springframework.jms.config中的方法 修饰符和类型 方法 说明 void
AbstractJmsListenerContainerFactory. setErrorHandler(ErrorHandler errorHandler)
org.springframework.jms.listener中ErrorHandler的使用
返回ErrorHandler的org.springframework.jms.listener中的方法 修饰符和类型 方法 说明 ErrorHandler
AbstractMessageListenerContainer. getErrorHandler()
Return the ErrorHandler to be invoked in case of any uncaught exceptions thrown while processing a Message.参数类型为ErrorHandler的org.springframework.jms.listener中的方法 修饰符和类型 方法 说明 void
AbstractMessageListenerContainer. setErrorHandler(ErrorHandler errorHandler)
Set the ErrorHandler to be invoked in case of any uncaught exceptions thrown while processing a Message.org.springframework.scheduling.commonj中ErrorHandler的使用
参数类型为ErrorHandler的org.springframework.scheduling.commonj中的方法 修饰符和类型 方法 说明 void
TimerManagerTaskScheduler. setErrorHandler(ErrorHandler errorHandler)
已过时。Provide anErrorHandler
strategy.org.springframework.scheduling.concurrent中ErrorHandler的使用
参数类型为ErrorHandler的org.springframework.scheduling.concurrent中的方法 修饰符和类型 方法 说明 void
ConcurrentTaskScheduler. setErrorHandler(ErrorHandler errorHandler)
Provide anErrorHandler
strategy.void
ThreadPoolTaskScheduler. setErrorHandler(ErrorHandler errorHandler)
Set a customErrorHandler
strategy.org.springframework.scheduling.support中ErrorHandler的使用
声明为ErrorHandler的org.springframework.scheduling.support中的字段 修饰符和类型 字段 说明 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.返回ErrorHandler的org.springframework.scheduling.support中的方法 修饰符和类型 方法 说明 static ErrorHandler
TaskUtils. getDefaultErrorHandler(boolean isRepeatingTask)
Return the defaultErrorHandler
implementation based on the boolean value indicating whether the task will be repeating or not.参数类型为ErrorHandler的org.springframework.scheduling.support中的方法 修饰符和类型 方法 说明 static DelegatingErrorHandlingRunnable
TaskUtils. decorateTaskWithErrorHandler(Runnable task, ErrorHandler errorHandler, boolean isRepeatingTask)
Decorate the task for error handling.参数类型为ErrorHandler的org.springframework.scheduling.support中的构造器 构造器 说明 DelegatingErrorHandlingRunnable(Runnable delegate, ErrorHandler errorHandler)
Create a new DelegatingErrorHandlingRunnable.