类 CallableTaskletAdapter

  • 所有已实现的接口:
    Tasklet, org.springframework.beans.factory.InitializingBean

    public class CallableTaskletAdapter
    extends java.lang.Object
    implements Tasklet, org.springframework.beans.factory.InitializingBean
    Adapts a Callable<RepeatStatus> to the Tasklet interface.
    作者:
    Dave Syer
    • 方法详细资料

      • setCallable

        public void setCallable​(java.util.concurrent.Callable<RepeatStatus> callable)
        Public setter for the Callable.
        参数:
        callable - the Callable to set
      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws java.lang.Exception
        Assert that the callable is set.
        指定者:
        afterPropertiesSet 在接口中 org.springframework.beans.factory.InitializingBean
        抛出:
        java.lang.Exception
        另请参阅:
        InitializingBean.afterPropertiesSet()