public class TaskSchedulerPoller<T> extends Object implements org.springframework.batch.poller.Poller<T>, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.InitializingBean
Poller
implementation that uses a TaskScheduler
to poll in
a background thread.Constructor and Description |
---|
TaskSchedulerPoller() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
Future<T> |
poll(Callable<T> callback) |
void |
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) |
void |
setTaskScheduler(org.springframework.scheduling.TaskScheduler taskScheduler) |
void |
setTrigger(org.springframework.scheduling.Trigger trigger) |
public void setTrigger(org.springframework.scheduling.Trigger trigger)
public void setTaskScheduler(org.springframework.scheduling.TaskScheduler taskScheduler)
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException
setBeanFactory
in interface org.springframework.beans.factory.BeanFactoryAware
org.springframework.beans.BeansException
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
Copyright © 2015. All rights reserved.