org.apache.blur.concurrent
Class ThreadWatcher.ThreadWatcherExecutorService
java.lang.Object
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
ThreadWatcher.ThreadWatcherExecutorService
public ThreadWatcher.ThreadWatcherExecutorService(java.util.concurrent.ExecutorService executorService,
ThreadWatcher threadWatcher)
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.