org.jvnet.hk2.component.concurrent
Class SameThreadExecutor
java.lang.Object
java.util.concurrent.AbstractExecutorService
org.jvnet.hk2.component.concurrent.SameThreadExecutor
- All Implemented Interfaces:
- Executor, ExecutorService
public class SameThreadExecutor
- extends AbstractExecutorService
Provides a same-thread executor service for use by Hk2 internals.
- Author:
- Jeff Trent
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
instance
public static final ExecutorService instance
awaitTermination
public boolean awaitTermination(long arg0,
TimeUnit arg1)
throws InterruptedException
- Throws:
InterruptedException
isShutdown
public boolean isShutdown()
isTerminated
public boolean isTerminated()
shutdown
public void shutdown()
shutdownNow
public List<Runnable> shutdownNow()
execute
public void execute(Runnable runnable)
Copyright © 2011 Oracle Corporation. All Rights Reserved.