spring-framework / org.springframework.core.task.support / ConcurrentExecutorAdapter

ConcurrentExecutorAdapter

open class ConcurrentExecutorAdapter : Executor

Adapter that exposes the java.util.concurrent.Executor interface for any Spring org.springframework.core.task.TaskExecutor.

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

Author
Juergen Hoeller

Since
2.5

See Also
java.util.concurrent.Executororg.springframework.core.task.TaskExecutor

Constructors

<init>

ConcurrentExecutorAdapter(taskExecutor: TaskExecutor)

Create a new ConcurrentExecutorAdapter for the given Spring TaskExecutor.

Functions

execute

open fun execute(command: Runnable): Unit