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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WithinThreadExecutor
public WithinThreadExecutor()
execute
public void execute(Runnable command)
shutdown
public void shutdown()
shutdownNow
public List<Runnable> shutdownNow()
isShutdown
public boolean isShutdown()
isTerminated
public boolean isTerminated()
awaitTermination
public boolean awaitTermination(long timeout,
TimeUnit unit)
throws InterruptedException
- Throws:
InterruptedException
Copyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.