Class ConcurrentExecutorAdapter

java.lang.Object
org.springframework.core.task.support.ConcurrentExecutorAdapter
All Implemented Interfaces:
Executor

@Deprecated(since="6.0.5", forRemoval=true) public class ConcurrentExecutorAdapter extends Object implements Executor
Deprecated, for removal: This API element is subject to removal in a future version.
ConcurrentExecutorAdapter is obsolete and will be removed in Spring Framework 6.1
Adapter that exposes the Executor interface for any Spring TaskExecutor.

This adapter is less useful since Spring 3.0, since TaskExecutor itself extends the Executor interface. The adapter is only relevant for hiding the TaskExecutor nature of a given object, solely exposing the standard Executor interface to a client.

Since:
2.5
Author:
Juergen Hoeller
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
    Create a new ConcurrentExecutorAdapter for the given Spring TaskExecutor.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    execute(Runnable command)
    Deprecated, for removal: This API element is subject to removal in a future version.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ConcurrentExecutorAdapter

      public ConcurrentExecutorAdapter(TaskExecutor taskExecutor)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Create a new ConcurrentExecutorAdapter for the given Spring TaskExecutor.
      Parameters:
      taskExecutor - the Spring TaskExecutor to wrap
  • Method Details

    • execute

      public void execute(Runnable command)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      execute in interface Executor