org.jvnet.hk2.component.concurrent
Class SameThreadExecutor

java.lang.Object
  extended by java.util.concurrent.AbstractExecutorService
      extended by 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

Field Summary
static ExecutorService instance
           
 
Method Summary
 boolean awaitTermination(long arg0, TimeUnit arg1)
           
 void execute(Runnable runnable)
           
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instance

public static final ExecutorService instance
Method Detail

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.