Package org.eclipse.jetty.util.thread
Class TryExecutor.NoTryExecutor
- java.lang.Object
-
- org.eclipse.jetty.util.thread.TryExecutor.NoTryExecutor
-
- All Implemented Interfaces:
Executor
,TryExecutor
- Enclosing interface:
- TryExecutor
@Deprecated(since="2021-05-27") public static class TryExecutor.NoTryExecutor extends 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(Executor executor)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
execute(Runnable task)
Deprecated.String
toString()
Deprecated.boolean
tryExecute(Runnable task)
Deprecated.Attempt to execute a task.
-
-
-
Constructor Detail
-
NoTryExecutor
public NoTryExecutor(Executor executor)
Deprecated.
-
-
Method Detail
-
execute
public void execute(Runnable task)
Deprecated.- Specified by:
execute
in interfaceExecutor
- Specified by:
execute
in interfaceTryExecutor
-
tryExecute
public boolean tryExecute(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.
-
-