public interface TryExecutor extends Executor
Modifier and Type | Interface and Description |
---|---|
static class |
TryExecutor.NoTryExecutor |
Modifier and Type | Field and Description |
---|---|
static TryExecutor |
NO_TRY |
Modifier and Type | Method and Description |
---|---|
static TryExecutor |
asTryExecutor(Executor executor) |
default void |
execute(Runnable task) |
boolean |
tryExecute(Runnable task)
Attempt to execute a task.
|
static final TryExecutor NO_TRY
boolean tryExecute(Runnable task)
task
- The task to be executedstatic TryExecutor asTryExecutor(Executor executor)
Copyright © 2010 - 2020 Adobe. All Rights Reserved