org.jclouds.concurrent
Class MoreExecutors.SameThreadExecutorService

java.lang.Object
  extended by java.util.concurrent.AbstractExecutorService
      extended by org.jclouds.concurrent.MoreExecutors.SameThreadExecutorService
All Implemented Interfaces:
Executor, ExecutorService
Enclosing class:
MoreExecutors

public static class MoreExecutors.SameThreadExecutorService
extends AbstractExecutorService


Method Summary
 boolean awaitTermination(long timeout, TimeUnit unit)
           
 void execute(Runnable command)
           
 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
 

Method Detail

execute

public void execute(Runnable command)

isShutdown

public boolean isShutdown()

shutdown

public void shutdown()

shutdownNow

public List<Runnable> shutdownNow()

isTerminated

public boolean isTerminated()

awaitTermination

public boolean awaitTermination(long timeout,
                                TimeUnit unit)
                         throws InterruptedException
Throws:
InterruptedException


Copyright © 2009-2012 jclouds. All Rights Reserved.