public interface ExecutorService
Modifier and Type | Method and Description |
---|---|
ContextSnapshot |
createSnapshotContext()
Create a snapshot of the current active Contexts.
|
<T> java.util.concurrent.Future<T> |
submit(java.util.concurrent.Callable<T> task)
Submits a value-returning task for execution and returns a
Future representing the pending results of the task.
|
<T> java.util.concurrent.Future<T> submit(java.util.concurrent.Callable<T> task)
task
- the task to submitjava.util.concurrent.RejectedExecutionException
- if the task cannot be
scheduled for executionjava.lang.NullPointerException
- if the task is nullContextSnapshot createSnapshotContext()