@Override protected DelegatingSecurityContextScheduledExecutorService create() { return new DelegatingSecurityContextScheduledExecutorService(delegate, securityContext); } }
@Override protected DelegatingSecurityContextScheduledExecutorService create() { return new DelegatingSecurityContextScheduledExecutorService(delegate); }
@Bean public ScheduledExecutorService scheduledExecutorService() { return new DelegatingSecurityContextScheduledExecutorService(Executors.newScheduledThreadPool(1, new ThreadFactoryBuilder().setNameFormat("central-scheduled-executor-pool-%d").build())); }
@Bean public ScheduledExecutorService scheduledExecutorService() { return new DelegatingSecurityContextScheduledExecutorService(Executors.newScheduledThreadPool(1, new ThreadFactoryBuilder().setNameFormat("central-scheduled-executor-pool-%d").build())); }
/** * @return {@link ScheduledExecutorService} with security context * availability in thread execution. */ @Bean(destroyMethod = "shutdown") @ConditionalOnMissingBean public ScheduledExecutorService scheduledExecutorService() { return new DelegatingSecurityContextScheduledExecutorService( Executors.newScheduledThreadPool(asyncConfigurerProperties.getSchedulerThreads(), new ThreadFactoryBuilder().setNameFormat("central-scheduled-executor-pool-%d").build())); }
/** * @return {@link ScheduledExecutorService} with security context * availability in thread execution. */ @Bean(destroyMethod = "shutdown") @ConditionalOnMissingBean public ScheduledExecutorService scheduledExecutorService() { return new DelegatingSecurityContextScheduledExecutorService( Executors.newScheduledThreadPool(asyncConfigurerProperties.getSchedulerThreads(), new ThreadFactoryBuilder().setNameFormat("central-scheduled-executor-pool-%d").build())); }