public interface TryExecutor
extends java.util.concurrent.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(java.util.concurrent.Executor executor) |
default void |
execute(java.lang.Runnable task) |
boolean |
tryExecute(java.lang.Runnable task)
Attempt to execute a task.
|
static final TryExecutor NO_TRY
boolean tryExecute(java.lang.Runnable task)
task
- The task to be executeddefault void execute(java.lang.Runnable task)
execute
in interface java.util.concurrent.Executor
static TryExecutor asTryExecutor(java.util.concurrent.Executor executor)
Copyright © 1995–2023 Webtide. All rights reserved.