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
public static class TryExecutor.NoTryExecutor extends Object implements TryExecutor
-
-
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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(Runnable task)StringtoString()booleantryExecute(Runnable task)Attempt to execute a task.
-
-
-
Constructor Detail
-
NoTryExecutor
public NoTryExecutor(Executor executor)
-
-
Method Detail
-
execute
public void execute(Runnable task)
- Specified by:
executein interfaceExecutor- Specified by:
executein interfaceTryExecutor
-
tryExecute
public boolean tryExecute(Runnable task)
Description copied from interface:TryExecutorAttempt to execute a task.- Specified by:
tryExecutein 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.
-
-