public final class Executors extends Object
Executor
s.
Modifier and Type | Field and Description |
---|---|
static Executor |
DISABLED
Disabled Executor.
|
static Executor |
SYNC
Synchronous, same thread Executor.
|
Constructor and Description |
---|
Executors() |
Modifier and Type | Method and Description |
---|---|
static <T> Executor<T> |
async()
Returns asynchronous, different but unique thread executor.
|
static <T> Executor<T> |
async(ExecutorService executorService)
Returns asynchronous, different thread executor.
|
static <T> Executor<T> |
disabled()
Returns disabled executor.
|
static void |
shutdownAsync()
Stops thread used by default async executor.
|
static <T> Executor<T> |
sync()
Returns synchronous, same thread executor.
|
public Executors()
public static <T> Executor<T> async(ExecutorService executorService)
public static <T> Executor<T> async()
public static void shutdownAsync()
Copyright © 2019. All rights reserved.