类 DustAsyncTaskExecutor

  • 所有已实现的接口:
    java.util.concurrent.Executor, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean, org.springframework.core.task.AsyncTaskExecutor, org.springframework.core.task.TaskExecutor

    public class DustAsyncTaskExecutor
    extends java.lang.Object
    implements org.springframework.core.task.AsyncTaskExecutor, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
    异步任务执行器,用于执行异步操作,通常根据 所有任务的执行异常都会记录日志
    • 字段概要

      • 从接口继承的字段 org.springframework.core.task.AsyncTaskExecutor

        TIMEOUT_IMMEDIATE, TIMEOUT_INDEFINITE
    • 构造器概要

      构造器 
      构造器 说明
      DustAsyncTaskExecutor​(org.springframework.core.task.AsyncTaskExecutor executor)  
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      void afterPropertiesSet()  
      void destroy()  
      void execute​(java.lang.Runnable task)  
      void execute​(java.lang.Runnable task, long startTimeout)  
      void execute​(DustAsyncTaskExecutor.TaskInfo taskInfo)  
      protected void handle​(java.lang.Exception e)  
      java.util.concurrent.Future<?> submit​(java.lang.Runnable task)  
      <T> java.util.concurrent.Future<T> submit​(java.util.concurrent.Callable<T> task)  
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 构造器详细资料

      • DustAsyncTaskExecutor

        public DustAsyncTaskExecutor​(org.springframework.core.task.AsyncTaskExecutor executor)
    • 方法详细资料

      • execute

        public void execute​(java.lang.Runnable task)
        指定者:
        execute 在接口中 java.util.concurrent.Executor
        指定者:
        execute 在接口中 org.springframework.core.task.TaskExecutor
      • execute

        public void execute​(java.lang.Runnable task,
                            long startTimeout)
        指定者:
        execute 在接口中 org.springframework.core.task.AsyncTaskExecutor
      • handle

        protected void handle​(java.lang.Exception e)
      • submit

        public java.util.concurrent.Future<?> submit​(java.lang.Runnable task)
        指定者:
        submit 在接口中 org.springframework.core.task.AsyncTaskExecutor
      • submit

        public <T> java.util.concurrent.Future<T> submit​(java.util.concurrent.Callable<T> task)
        指定者:
        submit 在接口中 org.springframework.core.task.AsyncTaskExecutor
      • destroy

        public void destroy()
                     throws java.lang.Exception
        指定者:
        destroy 在接口中 org.springframework.beans.factory.DisposableBean
        抛出:
        java.lang.Exception
      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws java.lang.Exception
        指定者:
        afterPropertiesSet 在接口中 org.springframework.beans.factory.InitializingBean
        抛出:
        java.lang.Exception