Package org.eclipse.jetty.util.thread
Class TryExecutor.NoTryExecutor
- java.lang.Object
-
- org.eclipse.jetty.util.thread.TryExecutor.NoTryExecutor
-
- All Implemented Interfaces:
java.util.concurrent.Executor
,TryExecutor
- Enclosing interface:
- TryExecutor
@Deprecated(since="2021-05-27") public static class TryExecutor.NoTryExecutor extends java.lang.Object implements TryExecutor
Deprecated.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.thread.TryExecutor
TryExecutor.NoTryExecutor
-
-
Field Summary
-
Fields inherited from interface org.eclipse.jetty.util.thread.TryExecutor
NO_TRY
-
-
Constructor Summary
Constructors Constructor Description NoTryExecutor(java.util.concurrent.Executor executor)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
execute(java.lang.Runnable task)
Deprecated.java.lang.String
toString()
Deprecated.boolean
tryExecute(java.lang.Runnable task)
Deprecated.Attempt to execute a task.
-
-
-
Method Detail
-
execute
public void execute(java.lang.Runnable task)
Deprecated.- Specified by:
execute
in interfacejava.util.concurrent.Executor
- Specified by:
execute
in interfaceTryExecutor
-
tryExecute
public boolean tryExecute(java.lang.Runnable task)
Deprecated.Description copied from interface:TryExecutor
Attempt to execute a task.- Specified by:
tryExecute
in interfaceTryExecutor
- Parameters:
task
- The task to be executed- Returns:
- True IFF the task has been given directly to a thread to execute. The task cannot be queued pending the later availability of a Thread.
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toString
in classjava.lang.Object
-
-