org.springframework.aop.interceptor.SimpleAsyncUncaughtExceptionHandler Java Examples

The following examples show how to use org.springframework.aop.interceptor.SimpleAsyncUncaughtExceptionHandler. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ExecutorConfiguration.java    From jetlinks-community with Apache License 2.0 6 votes vote down vote up
@Bean
public AsyncConfigurer asyncConfigurer() {
    AsyncUncaughtExceptionHandler handler = new SimpleAsyncUncaughtExceptionHandler();

    return new AsyncConfigurer() {
        @Override
        @SneakyThrows
        public Executor getAsyncExecutor() {
            return threadPoolTaskExecutor().getObject();
        }

        @Override
        public AsyncUncaughtExceptionHandler getAsyncUncaughtExceptionHandler() {
            return handler;
        }
    };
}
 
Example #2
Source File: CoreSpringModuleConfig.java    From herd with Apache License 2.0 5 votes vote down vote up
@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();
}
 
Example #3
Source File: AsyncConfiguration.java    From angularjs-springboot-bookstore with MIT License 4 votes vote down vote up
@Override
public AsyncUncaughtExceptionHandler getAsyncUncaughtExceptionHandler() {
    return new SimpleAsyncUncaughtExceptionHandler();
}
 
Example #4
Source File: AsyncConfiguration.java    From 21-points with Apache License 2.0 4 votes vote down vote up
@Override
public AsyncUncaughtExceptionHandler getAsyncUncaughtExceptionHandler() {
    return new SimpleAsyncUncaughtExceptionHandler();
}
 
Example #5
Source File: AsyncConfiguration.java    From expper with GNU General Public License v3.0 4 votes vote down vote up
@Override
public AsyncUncaughtExceptionHandler getAsyncUncaughtExceptionHandler() {
    return new SimpleAsyncUncaughtExceptionHandler();
}
 
Example #6
Source File: AsyncConfiguration.java    From eds-starter6-jpa with Apache License 2.0 4 votes vote down vote up
@Override
public AsyncUncaughtExceptionHandler getAsyncUncaughtExceptionHandler() {
	return new SimpleAsyncUncaughtExceptionHandler();
}
 
Example #7
Source File: AsyncConfiguration.java    From tutorials with MIT License 4 votes vote down vote up
@Override
public AsyncUncaughtExceptionHandler getAsyncUncaughtExceptionHandler() {
    return new SimpleAsyncUncaughtExceptionHandler();
}
 
Example #8
Source File: AsyncConfiguration.java    From tutorials with MIT License 4 votes vote down vote up
@Override
public AsyncUncaughtExceptionHandler getAsyncUncaughtExceptionHandler() {
    return new SimpleAsyncUncaughtExceptionHandler();
}
 
Example #9
Source File: AsyncConfiguration.java    From tutorials with MIT License 4 votes vote down vote up
@Override
public AsyncUncaughtExceptionHandler getAsyncUncaughtExceptionHandler() {
    return new SimpleAsyncUncaughtExceptionHandler();
}
 
Example #10
Source File: AsyncConfiguration.java    From tutorials with MIT License 4 votes vote down vote up
@Override
public AsyncUncaughtExceptionHandler getAsyncUncaughtExceptionHandler() {
    return new SimpleAsyncUncaughtExceptionHandler();
}
 
Example #11
Source File: AsyncConfiguration.java    From tutorials with MIT License 4 votes vote down vote up
@Override
public AsyncUncaughtExceptionHandler getAsyncUncaughtExceptionHandler() {
    return new SimpleAsyncUncaughtExceptionHandler();
}
 
Example #12
Source File: AsyncConfiguration.java    From tutorials with MIT License 4 votes vote down vote up
@Override
public AsyncUncaughtExceptionHandler getAsyncUncaughtExceptionHandler() {
    return new SimpleAsyncUncaughtExceptionHandler();
}
 
Example #13
Source File: AsyncConfiguration.java    From tutorials with MIT License 4 votes vote down vote up
@Override
public AsyncUncaughtExceptionHandler getAsyncUncaughtExceptionHandler() {
    return new SimpleAsyncUncaughtExceptionHandler();
}
 
Example #14
Source File: AsyncConfiguration.java    From tutorials with MIT License 4 votes vote down vote up
@Override
public AsyncUncaughtExceptionHandler getAsyncUncaughtExceptionHandler() {
    return new SimpleAsyncUncaughtExceptionHandler();
}
 
Example #15
Source File: StackCollectorContext.java    From cloudbreak with Apache License 2.0 4 votes vote down vote up
@Override
public AsyncUncaughtExceptionHandler getAsyncUncaughtExceptionHandler() {
    return new SimpleAsyncUncaughtExceptionHandler();
}
 
Example #16
Source File: TestConfiguration.java    From hawkbit with Eclipse Public License 1.0 4 votes vote down vote up
@Override
public AsyncUncaughtExceptionHandler getAsyncUncaughtExceptionHandler() {
    return new SimpleAsyncUncaughtExceptionHandler();
}
 
Example #17
Source File: AsyncConfiguration.java    From ServiceCutter with Apache License 2.0 4 votes vote down vote up
@Override
public AsyncUncaughtExceptionHandler getAsyncUncaughtExceptionHandler() {
    return new SimpleAsyncUncaughtExceptionHandler();
}
 
Example #18
Source File: SchedulingConfig.java    From NettyReverseProxy with Apache License 2.0 4 votes vote down vote up
@Override
public AsyncUncaughtExceptionHandler getAsyncUncaughtExceptionHandler() {
    return new SimpleAsyncUncaughtExceptionHandler();
}
 
Example #19
Source File: AsyncConfiguration.java    From jhipster-registry with Apache License 2.0 4 votes vote down vote up
@Override
public AsyncUncaughtExceptionHandler getAsyncUncaughtExceptionHandler() {
    return new SimpleAsyncUncaughtExceptionHandler();
}
 
Example #20
Source File: AsyncConfiguration.java    From ehcache3-samples with Apache License 2.0 4 votes vote down vote up
@Override
public AsyncUncaughtExceptionHandler getAsyncUncaughtExceptionHandler() {
    return new SimpleAsyncUncaughtExceptionHandler();
}
 
Example #21
Source File: AsyncConfiguration.java    From OpenIoE with Apache License 2.0 4 votes vote down vote up
@Override
public AsyncUncaughtExceptionHandler getAsyncUncaughtExceptionHandler() {
    return new SimpleAsyncUncaughtExceptionHandler();
}
 
Example #22
Source File: AsyncConfiguration.java    From gpmr with Apache License 2.0 4 votes vote down vote up
@Override
public AsyncUncaughtExceptionHandler getAsyncUncaughtExceptionHandler() {
    return new SimpleAsyncUncaughtExceptionHandler();
}
 
Example #23
Source File: AsyncConfiguration.java    From jhipster-ribbon-hystrix with GNU General Public License v3.0 4 votes vote down vote up
@Override
public AsyncUncaughtExceptionHandler getAsyncUncaughtExceptionHandler() {
    return new SimpleAsyncUncaughtExceptionHandler();
}
 
Example #24
Source File: _AsyncConfiguration.java    From jhipster-ribbon-hystrix with GNU General Public License v3.0 4 votes vote down vote up
@Override
public AsyncUncaughtExceptionHandler getAsyncUncaughtExceptionHandler() {
    return new SimpleAsyncUncaughtExceptionHandler();
}
 
Example #25
Source File: AsyncConfiguration.java    From jhipster-ribbon-hystrix with GNU General Public License v3.0 4 votes vote down vote up
@Override
public AsyncUncaughtExceptionHandler getAsyncUncaughtExceptionHandler() {
    return new SimpleAsyncUncaughtExceptionHandler();
}
 
Example #26
Source File: AsyncConfiguration.java    From jhipster-ribbon-hystrix with GNU General Public License v3.0 4 votes vote down vote up
@Override
public AsyncUncaughtExceptionHandler getAsyncUncaughtExceptionHandler() {
    return new SimpleAsyncUncaughtExceptionHandler();
}
 
Example #27
Source File: AsyncConfiguration.java    From klask-io with GNU General Public License v3.0 4 votes vote down vote up
@Override
public AsyncUncaughtExceptionHandler getAsyncUncaughtExceptionHandler() {
    return new SimpleAsyncUncaughtExceptionHandler();
}
 
Example #28
Source File: ThreadPoolConfig.java    From spring-boot-start-current with Apache License 2.0 4 votes vote down vote up
@Override
public AsyncUncaughtExceptionHandler getAsyncUncaughtExceptionHandler () {
    return new SimpleAsyncUncaughtExceptionHandler();
}
 
Example #29
Source File: ThreadPoolConfig.java    From spring-boot-start-current with Apache License 2.0 4 votes vote down vote up
@Override
public AsyncUncaughtExceptionHandler getAsyncUncaughtExceptionHandler () {
	return new SimpleAsyncUncaughtExceptionHandler();
}
 
Example #30
Source File: AsyncConfiguration.java    From spring-boot-completablefuture with MIT License 4 votes vote down vote up
@Override
public AsyncUncaughtExceptionHandler getAsyncUncaughtExceptionHandler() {
    return new SimpleAsyncUncaughtExceptionHandler();
}