de.unkrig.commons.util.concurrent
Class LinearExecutorService

java.lang.Object
  extended by java.util.concurrent.AbstractExecutorService
      extended by de.unkrig.commons.util.concurrent.LinearExecutorService
All Implemented Interfaces:
java.util.concurrent.Executor, java.util.concurrent.ExecutorService

public class LinearExecutorService
extends java.util.concurrent.AbstractExecutorService

An AbstractExecutorService which executes runnables immediately in the calling thread.


Constructor Summary
LinearExecutorService()
           
 
Method Summary
 boolean awaitTermination(long timeout, java.util.concurrent.TimeUnit unit)
           
 void execute(java.lang.Runnable command)
           
 boolean isShutdown()
           
 boolean isTerminated()
           
 void shutdown()
           
 java.util.List<java.lang.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
 

Constructor Detail

LinearExecutorService

public LinearExecutorService()
Method Detail

shutdown

public void shutdown()

shutdownNow

public java.util.List<java.lang.Runnable> shutdownNow()

isShutdown

public boolean isShutdown()

isTerminated

public boolean isTerminated()

awaitTermination

public boolean awaitTermination(long timeout,
                                java.util.concurrent.TimeUnit unit)

execute

public void execute(java.lang.Runnable command)