de.intarsys.tools.concurrent
Class SynchronousExecutorService

java.lang.Object
  extended by java.util.concurrent.AbstractExecutorService
      extended by de.intarsys.tools.concurrent.SynchronousExecutorService
All Implemented Interfaces:
java.util.concurrent.Executor, java.util.concurrent.ExecutorService

public class SynchronousExecutorService
extends java.util.concurrent.AbstractExecutorService

A simple ExecutorService running all commands synchronously.


Constructor Summary
SynchronousExecutorService()
           
 
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 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

SynchronousExecutorService

public SynchronousExecutorService()
Method Detail

awaitTermination

public boolean awaitTermination(long timeout,
                                java.util.concurrent.TimeUnit unit)
                         throws java.lang.InterruptedException
Throws:
java.lang.InterruptedException

execute

public void execute(java.lang.Runnable command)

isShutdown

public boolean isShutdown()

isTerminated

public boolean isTerminated()

shutdown

public void shutdown()

shutdownNow

public java.util.List shutdownNow()