接口的使用
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.concurrentandjavax.enterprise.concurrentpackages, 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 ErrorHandlerSimpleApplicationEventMulticaster. getErrorHandler()Return the current error handler for this multicaster.参数类型为ErrorHandler的org.springframework.context.event中的方法 修饰符和类型 方法 说明 voidSimpleApplicationEventMulticaster. setErrorHandler(ErrorHandler errorHandler)Set theErrorHandlerto invoke in case an exception is thrown from a listener.org.springframework.jms.config中ErrorHandler的使用
参数类型为ErrorHandler的org.springframework.jms.config中的方法 修饰符和类型 方法 说明 voidAbstractJmsListenerContainerFactory. setErrorHandler(ErrorHandler errorHandler)org.springframework.jms.listener中ErrorHandler的使用
返回ErrorHandler的org.springframework.jms.listener中的方法 修饰符和类型 方法 说明 ErrorHandlerAbstractMessageListenerContainer. getErrorHandler()Return the ErrorHandler to be invoked in case of any uncaught exceptions thrown while processing a Message.参数类型为ErrorHandler的org.springframework.jms.listener中的方法 修饰符和类型 方法 说明 voidAbstractMessageListenerContainer. 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中的方法 修饰符和类型 方法 说明 voidTimerManagerTaskScheduler. setErrorHandler(ErrorHandler errorHandler)已过时。Provide anErrorHandlerstrategy.org.springframework.scheduling.concurrent中ErrorHandler的使用
参数类型为ErrorHandler的org.springframework.scheduling.concurrent中的方法 修饰符和类型 方法 说明 voidConcurrentTaskScheduler. setErrorHandler(ErrorHandler errorHandler)Provide anErrorHandlerstrategy.voidThreadPoolTaskScheduler. setErrorHandler(ErrorHandler errorHandler)Set a customErrorHandlerstrategy.org.springframework.scheduling.support中ErrorHandler的使用
声明为ErrorHandler的org.springframework.scheduling.support中的字段 修饰符和类型 字段 说明 static ErrorHandlerTaskUtils. LOG_AND_PROPAGATE_ERROR_HANDLERAn ErrorHandler strategy that will log at error level and then re-throw the Exception.static ErrorHandlerTaskUtils. LOG_AND_SUPPRESS_ERROR_HANDLERAn ErrorHandler strategy that will log the Exception but perform no further handling.返回ErrorHandler的org.springframework.scheduling.support中的方法 修饰符和类型 方法 说明 static ErrorHandlerTaskUtils. getDefaultErrorHandler(boolean isRepeatingTask)Return the defaultErrorHandlerimplementation based on the boolean value indicating whether the task will be repeating or not.参数类型为ErrorHandler的org.springframework.scheduling.support中的方法 修饰符和类型 方法 说明 static DelegatingErrorHandlingRunnableTaskUtils. 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.