public class ConcurrentExecutorAdapter
extends java.lang.Object
implements java.util.concurrent.Executor
Executor interface
for any Spring 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.
Executor,
TaskExecutor| Constructor and Description |
|---|
ConcurrentExecutorAdapter(TaskExecutor taskExecutor)
Create a new ConcurrentExecutorAdapter for the given Spring TaskExecutor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
execute(java.lang.Runnable command) |
public ConcurrentExecutorAdapter(TaskExecutor taskExecutor)
taskExecutor - the Spring TaskExecutor to wrap