- All Superinterfaces:
- All Known Implementing Classes:
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Implementations can use all sorts of different execution strategies, such as: synchronous, asynchronous, using a thread pool, and more.
Equivalent to Java's
so that clients may declare a dependency on an
Executor and receive
TaskExecutor implementation. This interface remains separate from
Executor interface primarily for backwards compatibility
with older APIs that depend on the
- Juergen Hoeller
- See Also:
(Runnable task)Execute the given
The call might return immediately if the implementation uses an asynchronous execution strategy, or might block in the case of synchronous execution.