Package org.infinispan.util.concurrent
Class WithinThreadExecutor
java.lang.Object
java.util.concurrent.AbstractExecutorService
org.infinispan.util.concurrent.WithinThreadExecutor
- All Implemented Interfaces:
Executor
,ExecutorService
An executor that works within the current thread.
- Since:
- 4.0
- Author:
- Manik Surtani (manik@jboss.org)
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
awaitTermination
(long timeout, TimeUnit unit) void
boolean
boolean
void
shutdown()
Methods inherited from class java.util.concurrent.AbstractExecutorService
invokeAll, invokeAll, invokeAny, invokeAny, newTaskFor, newTaskFor, submit, submit, submit
-
Constructor Details
-
WithinThreadExecutor
public WithinThreadExecutor()
-
-
Method Details
-
execute
-
shutdown
public void shutdown() -
shutdownNow
-
isShutdown
public boolean isShutdown() -
isTerminated
public boolean isTerminated() -
awaitTermination
- Throws:
InterruptedException
-