Package org.jboss.threads
Class ViewExecutor
- java.lang.Object
-
- java.util.concurrent.AbstractExecutorService
-
- org.jboss.threads.ViewExecutor
-
- All Implemented Interfaces:
Executor,ExecutorService
public final class ViewExecutor extends AbstractExecutorService
An executor service that is actually a "view" over another executor service.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classViewExecutor.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanawaitTermination(long timeout, TimeUnit unit)static ViewExecutor.Builderbuilder(Executor delegate)voidexecute(Runnable command)Thread.UncaughtExceptionHandlergetExceptionHandler()RunnablegetTerminationTask()booleanisShutdown()booleanisTerminated()voidsetExceptionHandler(Thread.UncaughtExceptionHandler handler)voidsetTerminationTask(Runnable terminationTask)voidshutdown()voidshutdown(boolean interrupt)List<Runnable>shutdownNow()StringtoString()-
Methods inherited from class java.util.concurrent.AbstractExecutorService
invokeAll, invokeAll, invokeAny, invokeAny, newTaskFor, newTaskFor, submit, submit, submit
-
-
-
-
Method Detail
-
execute
public void execute(Runnable command)
-
shutdown
public void shutdown()
-
shutdown
public void shutdown(boolean interrupt)
-
isShutdown
public boolean isShutdown()
-
isTerminated
public boolean isTerminated()
-
awaitTermination
public boolean awaitTermination(long timeout, TimeUnit unit) throws InterruptedException- Throws:
InterruptedException
-
getExceptionHandler
public Thread.UncaughtExceptionHandler getExceptionHandler()
-
setExceptionHandler
public void setExceptionHandler(Thread.UncaughtExceptionHandler handler)
-
getTerminationTask
public Runnable getTerminationTask()
-
setTerminationTask
public void setTerminationTask(Runnable terminationTask)
-
builder
public static ViewExecutor.Builder builder(Executor delegate)
-
-