org.apache.blur.concurrent
Class ThreadWatcher.ThreadWatcherExecutorService

java.lang.Object
  extended by org.apache.blur.concurrent.ThreadWatcher.ThreadWatcherExecutorService
All Implemented Interfaces:
java.util.concurrent.Executor, java.util.concurrent.ExecutorService
Enclosing class:
ThreadWatcher

public static class ThreadWatcher.ThreadWatcherExecutorService
extends Object
implements java.util.concurrent.ExecutorService


Constructor Summary
ThreadWatcher.ThreadWatcherExecutorService(java.util.concurrent.ExecutorService executorService, ThreadWatcher threadWatcher)
           
 
Method Summary
 boolean awaitTermination(long timeout, java.util.concurrent.TimeUnit unit)
           
 void execute(Runnable command)
           
<T> List<java.util.concurrent.Future<T>>
invokeAll(Collection<? extends java.util.concurrent.Callable<T>> tasks)
           
<T> List<java.util.concurrent.Future<T>>
invokeAll(Collection<? extends java.util.concurrent.Callable<T>> tasks, long timeout, java.util.concurrent.TimeUnit unit)
           
<T> T
invokeAny(Collection<? extends java.util.concurrent.Callable<T>> tasks)
           
<T> T
invokeAny(Collection<? extends java.util.concurrent.Callable<T>> tasks, long timeout, java.util.concurrent.TimeUnit unit)
           
 boolean isShutdown()
           
 boolean isTerminated()
           
 void shutdown()
           
 List<Runnable> shutdownNow()
           
<T> java.util.concurrent.Future<T>
submit(java.util.concurrent.Callable<T> task)
           
 java.util.concurrent.Future<?> submit(Runnable task)
           
<T> java.util.concurrent.Future<T>
submit(Runnable task, T result)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThreadWatcher.ThreadWatcherExecutorService

public ThreadWatcher.ThreadWatcherExecutorService(java.util.concurrent.ExecutorService executorService,
                                                  ThreadWatcher threadWatcher)
Method Detail

awaitTermination

public boolean awaitTermination(long timeout,
                                java.util.concurrent.TimeUnit unit)
                         throws InterruptedException
Specified by:
awaitTermination in interface java.util.concurrent.ExecutorService
Throws:
InterruptedException

execute

public void execute(Runnable command)
Specified by:
execute in interface java.util.concurrent.Executor

invokeAll

public <T> List<java.util.concurrent.Future<T>> invokeAll(Collection<? extends java.util.concurrent.Callable<T>> tasks,
                                                          long timeout,
                                                          java.util.concurrent.TimeUnit unit)
                                               throws InterruptedException
Specified by:
invokeAll in interface java.util.concurrent.ExecutorService
Throws:
InterruptedException

invokeAll

public <T> List<java.util.concurrent.Future<T>> invokeAll(Collection<? extends java.util.concurrent.Callable<T>> tasks)
                                               throws InterruptedException
Specified by:
invokeAll in interface java.util.concurrent.ExecutorService
Throws:
InterruptedException

invokeAny

public <T> T invokeAny(Collection<? extends java.util.concurrent.Callable<T>> tasks,
                       long timeout,
                       java.util.concurrent.TimeUnit unit)
            throws InterruptedException,
                   java.util.concurrent.ExecutionException,
                   java.util.concurrent.TimeoutException
Specified by:
invokeAny in interface java.util.concurrent.ExecutorService
Throws:
InterruptedException
java.util.concurrent.ExecutionException
java.util.concurrent.TimeoutException

invokeAny

public <T> T invokeAny(Collection<? extends java.util.concurrent.Callable<T>> tasks)
            throws InterruptedException,
                   java.util.concurrent.ExecutionException
Specified by:
invokeAny in interface java.util.concurrent.ExecutorService
Throws:
InterruptedException
java.util.concurrent.ExecutionException

isShutdown

public boolean isShutdown()
Specified by:
isShutdown in interface java.util.concurrent.ExecutorService

isTerminated

public boolean isTerminated()
Specified by:
isTerminated in interface java.util.concurrent.ExecutorService

shutdown

public void shutdown()
Specified by:
shutdown in interface java.util.concurrent.ExecutorService

shutdownNow

public List<Runnable> shutdownNow()
Specified by:
shutdownNow in interface java.util.concurrent.ExecutorService

submit

public <T> java.util.concurrent.Future<T> submit(java.util.concurrent.Callable<T> task)
Specified by:
submit in interface java.util.concurrent.ExecutorService

submit

public <T> java.util.concurrent.Future<T> submit(Runnable task,
                                                 T result)
Specified by:
submit in interface java.util.concurrent.ExecutorService

submit

public java.util.concurrent.Future<?> submit(Runnable task)
Specified by:
submit in interface java.util.concurrent.ExecutorService


Copyright © 2012-2014 The Apache Software Foundation. All Rights Reserved.