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