public static class AbstractVaultConfiguration.TaskSchedulerWrapper extends Object implements InitializingBean, DisposableBean
ThreadPoolTaskScheduler
local to Spring Vault and to not
expose the bean globally.Modifier | Constructor and Description |
---|---|
|
TaskSchedulerWrapper(ThreadPoolTaskScheduler taskScheduler) |
protected |
TaskSchedulerWrapper(ThreadPoolTaskScheduler taskScheduler,
boolean acceptAfterPropertiesSet,
boolean acceptDestroy) |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
void |
destroy() |
static AbstractVaultConfiguration.TaskSchedulerWrapper |
fromInstance(ThreadPoolTaskScheduler scheduler)
Factory method to adapt an existing
ThreadPoolTaskScheduler bean
without calling lifecycle methods. |
public TaskSchedulerWrapper(ThreadPoolTaskScheduler taskScheduler)
protected TaskSchedulerWrapper(ThreadPoolTaskScheduler taskScheduler, boolean acceptAfterPropertiesSet, boolean acceptDestroy)
public static AbstractVaultConfiguration.TaskSchedulerWrapper fromInstance(ThreadPoolTaskScheduler scheduler)
ThreadPoolTaskScheduler
bean
without calling lifecycle methods.scheduler
- the actual ThreadPoolTaskScheduler
.ThreadPoolTaskScheduler
.afterPropertiesSet()
,
destroy()
public void destroy()
destroy
in interface DisposableBean
public void afterPropertiesSet()
afterPropertiesSet
in interface InitializingBean
Copyright © 2016–2021 Pivotal Software, Inc.. All rights reserved.