Class TraceAsyncListenableTaskExecutor

java.lang.Object
org.springframework.cloud.sleuth.instrument.async.TraceAsyncListenableTaskExecutor
All Implemented Interfaces:
Executor, org.springframework.core.task.AsyncListenableTaskExecutor, org.springframework.core.task.AsyncTaskExecutor, org.springframework.core.task.TaskExecutor

public class TraceAsyncListenableTaskExecutor extends Object implements org.springframework.core.task.AsyncListenableTaskExecutor
AsyncListenableTaskExecutor that wraps all Runnable / Callable tasks into their trace related representation.
Since:
1.0.0
Author:
Marcin Grzejszczak
  • Method Details

    • submitListenable

      public org.springframework.util.concurrent.ListenableFuture<?> submitListenable(Runnable task)
      Specified by:
      submitListenable in interface org.springframework.core.task.AsyncListenableTaskExecutor
    • submitListenable

      public <T> org.springframework.util.concurrent.ListenableFuture<T> submitListenable(Callable<T> task)
      Specified by:
      submitListenable in interface org.springframework.core.task.AsyncListenableTaskExecutor
    • execute

      public void execute(Runnable task, long startTimeout)
      Specified by:
      execute in interface org.springframework.core.task.AsyncTaskExecutor
    • submit

      public Future<?> submit(Runnable task)
      Specified by:
      submit in interface org.springframework.core.task.AsyncTaskExecutor
    • submit

      public <T> Future<T> submit(Callable<T> task)
      Specified by:
      submit in interface org.springframework.core.task.AsyncTaskExecutor
    • execute

      public void execute(Runnable task)
      Specified by:
      execute in interface Executor
      Specified by:
      execute in interface org.springframework.core.task.TaskExecutor