Top Description Inners Fields Constructors Methods
org.jboss.threads

public abstract Class ViewExecutor

extends AbstractExecutorService
Class Inheritance
Known Direct Subclasses
org.jboss.threads.EnhancedViewExecutor
Imports
org.wildfly.common.Assert, java.security.PrivilegedAction, java.util.concurrent.AbstractExecutorService, .Executor

An executor service that is actually a "view" over another executor service.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
private volatile Thread.UncaughtExceptionHandler
private volatile Runnable

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public static ViewExecutor.Builder
builder(Executor delegate)

public final Thread.UncaughtExceptionHandler
public final Runnable
pack-priv static int
readIntPropertyPrefixed(String name, int defVal)

pack-priv static String
readProperty(String name, String defVal)

pack-priv static String
pack-priv static String
readPropertyRaw(final String name, final String defVal)

protected void
public final void
public final void
setTerminationTask(final Runnable terminationTask)

public final void
shutdown()

Implements java.util.concurrent.ExecutorService.shutdown.

Initiates an orderly shutdown in which previously submitted tasks are executed, but no new tasks will be accepted.
public abstract void
shutdown(boolean interrupt)

Inherited from java.util.concurrent.AbstractExecutorService:
invokeAllinvokeAllinvokeAnyinvokeAnynewTaskFornewTaskForsubmitsubmitsubmit

Field Detail

handlerback to summary
private volatile Thread.UncaughtExceptionHandler handler
terminationTaskback to summary
private volatile Runnable terminationTask

Constructor Detail

ViewExecutorback to summary
pack-priv ViewExecutor()

Method Detail

builderback to summary
public static ViewExecutor.Builder builder(Executor delegate)
getExceptionHandlerback to summary
public final Thread.UncaughtExceptionHandler getExceptionHandler()
getTerminationTaskback to summary
public final Runnable getTerminationTask()
readIntPropertyPrefixedback to summary
pack-priv static int readIntPropertyPrefixed(String name, int defVal)
readPropertyback to summary
pack-priv static String readProperty(String name, String defVal)
readPropertyPrefixedback to summary
pack-priv static String readPropertyPrefixed(String name, String defVal)
readPropertyRawback to summary
pack-priv static String readPropertyRaw(final String name, final String defVal)
runTerminationback to summary
protected void runTermination()
setExceptionHandlerback to summary
public final void setExceptionHandler(final Thread.UncaughtExceptionHandler handler)
setTerminationTaskback to summary
public final void setTerminationTask(final Runnable terminationTask)
shutdownback to summary
public final void shutdown()

Implements java.util.concurrent.ExecutorService.shutdown.

Doc from java.util.concurrent.ExecutorService.shutdown.

Initiates an orderly shutdown in which previously submitted tasks are executed, but no new tasks will be accepted. Invocation has no additional effect if already shut down.

This method does not wait for previously submitted tasks to complete execution. Use awaitTermination to do that.

Annotations
@Override
shutdownback to summary
public abstract void shutdown(boolean interrupt)
org.jboss.threads back to summary

public final Class ViewExecutor.Builder

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final Executor
private Thread.UncaughtExceptionHandler
private int
private int

Constructor Summary

AccessConstructor and Description
pack-priv
Builder(final Executor delegate)

Method Summary

Modifier and TypeMethod and Description
public ViewExecutor
public Executor
public int
public int
getQueueInitialSize()

Deprecated This value no longer has any impact.
public int
public Thread.UncaughtExceptionHandler
public ViewExecutor.Builder
setMaxSize(final int maxSize)

public ViewExecutor.Builder
setQueueInitialSize(final int queueInitialSize)

Deprecated This option no longer has any impact.
public ViewExecutor.Builder
setQueueLimit(final int queueLimit)

public ViewExecutor.Builder
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

delegateback to summary
private final Executor delegate
handlerback to summary
private Thread.UncaughtExceptionHandler handler
maxSizeback to summary
private int maxSize
queueLimitback to summary
private int queueLimit

Constructor Detail

Builderback to summary
pack-priv Builder(final Executor delegate)

Method Detail

buildback to summary
public ViewExecutor build()
getDelegateback to summary
public Executor getDelegate()
getMaxSizeback to summary
public int getMaxSize()
getQueueInitialSizeback to summary
public int getQueueInitialSize()

Deprecated

This value no longer has any impact.

Annotations
@Deprecated
getQueueLimitback to summary
public int getQueueLimit()
getUncaughtHandlerback to summary
public Thread.UncaughtExceptionHandler getUncaughtHandler()
setMaxSizeback to summary
public ViewExecutor.Builder setMaxSize(final int maxSize)
setQueueInitialSizeback to summary
public ViewExecutor.Builder setQueueInitialSize(final int queueInitialSize)

Deprecated

This option no longer has any impact.

Annotations
@Deprecated
setQueueLimitback to summary
public ViewExecutor.Builder setQueueLimit(final int queueLimit)
setUncaughtHandlerback to summary
public ViewExecutor.Builder setUncaughtHandler(final Thread.UncaughtExceptionHandler handler)