Package org.infinispan.util.concurrent
Class WithinThreadExecutor
- java.lang.Object
-
- java.util.concurrent.AbstractExecutorService
-
- org.infinispan.util.concurrent.WithinThreadExecutor
-
- All Implemented Interfaces:
Executor
,ExecutorService
public final class WithinThreadExecutor extends AbstractExecutorService
An executor that works within the current thread.- Since:
- 4.0
- Author:
- Manik Surtani (manik@jboss.org)
- See Also:
- Java Concurrency In Practice
-
-
Constructor Summary
Constructors Constructor Description WithinThreadExecutor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
awaitTermination(long timeout, TimeUnit unit)
void
execute(Runnable command)
boolean
isShutdown()
boolean
isTerminated()
void
shutdown()
List<Runnable>
shutdownNow()
-
Methods inherited from class java.util.concurrent.AbstractExecutorService
invokeAll, invokeAll, invokeAny, invokeAny, newTaskFor, newTaskFor, submit, submit, submit
-
-
-
-
Method Detail
-
execute
public void execute(Runnable command)
-
shutdown
public void shutdown()
-
isShutdown
public boolean isShutdown()
-
isTerminated
public boolean isTerminated()
-
awaitTermination
public boolean awaitTermination(long timeout, TimeUnit unit) throws InterruptedException
- Throws:
InterruptedException
-
-