Class MoreExecutors.ListeningDecorator
- java.lang.Object
-
- java.util.concurrent.AbstractExecutorService
-
- com.google.common.util.concurrent.AbstractListeningExecutorService
-
- com.google.common.util.concurrent.MoreExecutors.ListeningDecorator
-
- All Implemented Interfaces:
ListeningExecutorService
,java.util.concurrent.Executor
,java.util.concurrent.ExecutorService
- Direct Known Subclasses:
MoreExecutors.ScheduledListeningDecorator
- Enclosing class:
- MoreExecutors
@GwtIncompatible private static class MoreExecutors.ListeningDecorator extends AbstractListeningExecutorService
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.concurrent.ExecutorService
delegate
-
Constructor Summary
Constructors Constructor Description ListeningDecorator(java.util.concurrent.ExecutorService delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 com.google.common.util.concurrent.AbstractListeningExecutorService
newTaskFor, newTaskFor, submit, submit, submit
-
Methods inherited from class java.util.concurrent.AbstractExecutorService
invokeAll, invokeAll, invokeAny, invokeAny
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.google.common.util.concurrent.ListeningExecutorService
invokeAll, invokeAll
-
-
-
-
Method Detail
-
awaitTermination
public final boolean awaitTermination(long timeout, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
-
isShutdown
public final boolean isShutdown()
-
isTerminated
public final boolean isTerminated()
-
shutdown
public final void shutdown()
-
shutdownNow
public final java.util.List<java.lang.Runnable> shutdownNow()
-
execute
public final void execute(java.lang.Runnable command)
-
-