public class Executors extends Object
Executor
and ExecutorService
implementations.Constructor and Description |
---|
Executors() |
Modifier and Type | Method and Description |
---|---|
static Executor |
directExecutor()
Return a direct executor.
|
static ExecutorService |
newDirectExecutorService()
Return a new direct executor service.
|
public static Executor directExecutor()
public static ExecutorService newDirectExecutorService()
The direct executor service directly executes the runnables and the callables in the calling thread.
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.