public static class TryExecutor.NoTryExecutor extends java.lang.Object implements TryExecutor
TryExecutor.NoTryExecutor| Modifier and Type | Field and Description |
|---|---|
private java.util.concurrent.Executor |
executor |
NO_TRY| Constructor and Description |
|---|
NoTryExecutor(java.util.concurrent.Executor executor) |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(java.lang.Runnable task) |
java.lang.String |
toString() |
boolean |
tryExecute(java.lang.Runnable task)
Attempt to execute a task.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitasTryExecutorpublic void execute(java.lang.Runnable task)
execute in interface java.util.concurrent.Executorexecute in interface TryExecutorpublic boolean tryExecute(java.lang.Runnable task)
TryExecutortryExecute in interface TryExecutortask - The task to be executedpublic java.lang.String toString()
toString in class java.lang.Object