Example usage for org.springframework.aop.interceptor SimpleAsyncUncaughtExceptionHandler SimpleAsyncUncaughtExceptionHandler

List of usage examples for org.springframework.aop.interceptor SimpleAsyncUncaughtExceptionHandler SimpleAsyncUncaughtExceptionHandler

Introduction

In this page you can find the example usage for org.springframework.aop.interceptor SimpleAsyncUncaughtExceptionHandler SimpleAsyncUncaughtExceptionHandler.

Prototype

SimpleAsyncUncaughtExceptionHandler

Source Link

Usage

From source file:devbury.threadscope.SchedulerConfiguration.java

@Bean
@ConditionalOnMissingBean(AsyncUncaughtExceptionHandler.class)
public AsyncUncaughtExceptionHandler defaultAsyncUncaughtExceptionHandler() {
    return new SimpleAsyncUncaughtExceptionHandler();
}

From source file:curly.commons.config.context.RingBufferExecutorAutoConfiguration.java

@Bean
public AsyncUncaughtExceptionHandler asyncUncaughtExceptionHandler() {
    return new SimpleAsyncUncaughtExceptionHandler();
}

From source file:cz.muni.fi.editor.test.service.support.configs.TestConfiguration.java

@Override
public AsyncUncaughtExceptionHandler getAsyncUncaughtExceptionHandler() {
    return new SimpleAsyncUncaughtExceptionHandler();
}

From source file:org.finra.dm.service.config.ServiceSpringModuleConfig.java

@Override
public AsyncUncaughtExceptionHandler getAsyncUncaughtExceptionHandler() {
    // In case any @Async methods return "void" and not a "Future", this exception handler will handle those cases since the caller has not way to access
    // the exception without a "Future". Just use an out-of-the-box Spring handler that logs those exceptions.
    return new SimpleAsyncUncaughtExceptionHandler();
}

From source file:org.springframework.aop.interceptor.AsyncExecutionAspectSupport.java

/**
 * Create a new instance with a default {@link AsyncUncaughtExceptionHandler}.
 * @param defaultExecutor the {@code Executor} (typically a Spring {@code AsyncTaskExecutor}
 * or {@link java.util.concurrent.ExecutorService}) to delegate to, unless a more specific
 * executor has been requested via a qualifier on the async method, in which case the
 * executor will be looked up at invocation time against the enclosing bean factory
 *//*from  w  w w.  j a v  a2s  .c  o m*/
public AsyncExecutionAspectSupport(@Nullable Executor defaultExecutor) {
    this(defaultExecutor, new SimpleAsyncUncaughtExceptionHandler());
}

From source file:org.springframework.aop.interceptor.AsyncExecutionInterceptor.java

/**
 * Create a new instance with a default {@link AsyncUncaughtExceptionHandler}.
 *//*from w w  w .j a  v  a 2 s  .  co  m*/
public AsyncExecutionInterceptor(Executor defaultExecutor) {
    this(defaultExecutor, new SimpleAsyncUncaughtExceptionHandler());
}