| Modifier and Type | Field and Description |
|---|---|
| private static final RejectedExecutionHandler | |
| private static final RejectedExecutionHandler | |
| pack-priv static final long | |
| private static final RuntimePermission | |
| private static final RejectedExecutionHandler | |
| private static final RejectedExecutionHandler | |
| private static final ExecutorService | |
| private static final Thread. | |
| private static final Runnable | |
| private static final ExecutorService | |
| pack-priv static final ClassLoader | |
| private static final Runnable | |
| private static final Logger | |
| pack-priv static final Unsafe |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static RejectedExecutionHandler | Returns: the abort policyGet the abort policy for a |
| public static RejectedExecutionHandler | Returns: the caller-runs policyGet the caller-runs policy for a |
| public static Runnable | Returns: the wrapping runnablethe delegate runnable delegate)Create a task that delegates to the given task, preserving the context classloader which was in effect when this method was invoked. |
| pack-priv static Runnable | |
| pack-priv static void | clearContextClassLoader(final Thread
the thread to introspect thread)Privileged method to clear the context class loader of the given thread to a safe non- |
| public static Executor | Returns: the new direct executorthe executor to delegate to delegate, final ClassLoader the context class loader to use taskClassLoader)Create an executor which runs tasks with the given context class loader. |
| public static Runnable | Returns: the runnableGet a |
| public static Executor | |
| public static Executor | |
| public static ExecutorService | Returns: the discarding executor service instanceGet the discarding executor service. |
| public static RejectedExecutionHandler | Returns: the discard-oldest policyGet the discard-oldest policy for a |
| public static RejectedExecutionHandler | Returns: the discard policyGet the discard policy for a |
| pack-priv static ClassLoader | Returns: the old context class loaderthe thread to introspect thread, final ClassLoader the new context class loader newClassLoader)Privileged method to get and set the context class loader of the given thread. |
| pack-priv static ClassLoader | Returns: the context class loaderthe thread to introspect thread)Privileged method to get the context class loader of the given thread. |
| public static RejectedExecutionHandler | Returns: the new handoff policy implementationthe target executor target)Get a handoff policy for a |
| public static Thread. | Returns: the handlerthe logger log)Get an uncaught exception handler which logs to the given logger. |
| public static Thread. | Returns: the handlerthe name of the logger category to log to categoryName)Get an uncaught exception handler which logs to the given logger. |
| public static Thread. | Returns: the handlerGet an uncaught exception handler which logs to the default error logger. |
| public static Runnable | |
| public static ExecutorService | Returns: the executor servicethe target executor target)Wrap an executor with an |
| public static ScheduledExecutorService | Returns: the executor servicethe target executor target)Wrap a scheduled executor with a |
| public static Executor | |
| public static Executor | Returns: the rejecting executor instancethe reject message message)Get a rejecting executor. |
| public static ExecutorService | Returns: the rejecting executor service instanceGet the rejecting executor service. |
| public static ExecutorService | Returns: the rejecting executor service instancethe reject message message)Get the rejecting executor service. |
| public static ThreadFactory | Returns: the resetting thread factorythe delegate thread factory delegate)Create a thread factory which resets all thread-local storage and delegates to the given thread factory. |
| pack-priv static void | setContextClassLoader(final Thread
the thread to introspect thread, final ClassLoader the new context class loader classLoader)Privileged method to set the context class loader of the given thread. |
| ABORT_POLICY | back to summary |
|---|---|
| private static final RejectedExecutionHandler ABORT_POLICY | |
| CALLER_RUNS_POLICY | back to summary |
|---|---|
| private static final RejectedExecutionHandler CALLER_RUNS_POLICY | |
| contextClassLoaderOffs | back to summary |
|---|---|
| pack-priv static final long contextClassLoaderOffs | |
| COPY_CONTEXT_CLASSLOADER_PERMISSION | back to summary |
|---|---|
| private static final RuntimePermission COPY_CONTEXT_CLASSLOADER_PERMISSION | |
| DISCARD_OLDEST_POLICY | back to summary |
|---|---|
| private static final RejectedExecutionHandler DISCARD_OLDEST_POLICY | |
| DISCARD_POLICY | back to summary |
|---|---|
| private static final RejectedExecutionHandler DISCARD_POLICY | |
| DISCARDING_EXECUTOR_SERVICE | back to summary |
|---|---|
| private static final ExecutorService DISCARDING_EXECUTOR_SERVICE | |
| LOGGING_HANDLER | back to summary |
|---|---|
| private static final Thread. | |
| NULL_RUNNABLE | back to summary |
|---|---|
| private static final Runnable NULL_RUNNABLE | |
| REJECTING_EXECUTOR_SERVICE | back to summary |
|---|---|
| private static final ExecutorService REJECTING_EXECUTOR_SERVICE | |
| SAFE_CL | back to summary |
|---|---|
| pack-priv static final ClassLoader SAFE_CL | |
| TCCL_RESETTER | back to summary |
|---|---|
| private static final Runnable TCCL_RESETTER | |
| THREAD_ERROR_LOGGER | back to summary |
|---|---|
| private static final Logger THREAD_ERROR_LOGGER | |
| unsafe | back to summary |
|---|---|
| pack-priv static final Unsafe unsafe | |
| JBossExecutors | back to summary |
|---|---|
| private JBossExecutors() | |
| abortPolicy | back to summary |
|---|---|
| public static RejectedExecutionHandler abortPolicy() Get the abort policy for a
| |
| callerRunsPolicy | back to summary |
|---|---|
| public static RejectedExecutionHandler callerRunsPolicy() Get the caller-runs policy for a
| |
| classLoaderPreservingTask | back to summary |
|---|---|
| public static Runnable classLoaderPreservingTask(final Runnable delegate) throws SecurityException Create a task that delegates to the given task, preserving the context classloader which was in effect when this method was invoked.
| |
| classLoaderPreservingTaskUnchecked | back to summary |
|---|---|
| pack-priv static Runnable classLoaderPreservingTaskUnchecked(final Runnable delegate) | |
| clearContextClassLoader | back to summary |
|---|---|
| pack-priv static void clearContextClassLoader(final Thread thread) Privileged method to clear the context class loader of the given thread to a safe non-
| |
| contextClassLoaderExecutor | back to summary |
|---|---|
| public static Executor contextClassLoaderExecutor(final Executor delegate, final ClassLoader taskClassLoader) Create an executor which runs tasks with the given context class loader.
| |
| contextClassLoaderResetter | back to summary |
|---|---|
| public static Runnable contextClassLoaderResetter() Get a
| |
| directExecutor | back to summary |
|---|---|
| public static Executor directExecutor() Get the direct executor. This executor will immediately run any task it is given, and propagate back any run-time exceptions thrown.
| |
| discardingExecutor | back to summary |
|---|---|
| public static Executor discardingExecutor() Get the discarding executor. This executor will silently discard any task submitted to it.
| |
| discardingExecutorService | back to summary |
|---|---|
| public static ExecutorService discardingExecutorService() Get the discarding executor service. This executor will silently discard any task submitted to it. It cannot be shut down.
| |
| discardOldestPolicy | back to summary |
|---|---|
| public static RejectedExecutionHandler discardOldestPolicy() Get the discard-oldest policy for a
| |
| discardPolicy | back to summary |
|---|---|
| public static RejectedExecutionHandler discardPolicy() Get the discard policy for a
| |
| getAndSetContextClassLoader | back to summary |
|---|---|
| pack-priv static ClassLoader getAndSetContextClassLoader(final Thread thread, final ClassLoader newClassLoader) Privileged method to get and set the context class loader of the given thread.
| |
| getContextClassLoader | back to summary |
|---|---|
| pack-priv static ClassLoader getContextClassLoader(final Thread thread) Privileged method to get the context class loader of the given thread.
| |
| handoffPolicy | back to summary |
|---|---|
| public static RejectedExecutionHandler handoffPolicy(final Executor target) Get a handoff policy for a
| |
| loggingExceptionHandler | back to summary |
|---|---|
| public static Thread. Get an uncaught exception handler which logs to the given logger.
| |
| loggingExceptionHandler | back to summary |
|---|---|
| public static Thread. Get an uncaught exception handler which logs to the given logger.
| |
| loggingExceptionHandler | back to summary |
|---|---|
| public static Thread. Get an uncaught exception handler which logs to the default error logger.
| |
| nullRunnable | back to summary |
|---|---|
| public static Runnable nullRunnable() Get the null runnable which does nothing.
| |
| protectedExecutorService | back to summary |
|---|---|
| public static ExecutorService protectedExecutorService(final Executor target) Wrap an executor with an
| |
| protectedScheduledExecutorService | back to summary |
|---|---|
| public static ScheduledExecutorService protectedScheduledExecutorService(final ScheduledExecutorService target) Wrap a scheduled executor with a
| |
| rejectingExecutor | back to summary |
|---|---|
| public static Executor rejectingExecutor() Get the rejecting executor. This executor will reject any task submitted to it.
| |
| rejectingExecutor | back to summary |
|---|---|
| public static Executor rejectingExecutor(final String message) Get a rejecting executor. This executor will reject any task submitted to it with the given message. | |
| rejectingExecutorService | back to summary |
|---|---|
| public static ExecutorService rejectingExecutorService() Get the rejecting executor service. This executor will reject any task submitted to it. It cannot be shut down.
| |
| rejectingExecutorService | back to summary |
|---|---|
| public static ExecutorService rejectingExecutorService(final String message) Get the rejecting executor service. This executor will reject any task submitted to it with the given message. It cannot be shut down.
| |
| resettingThreadFactory | back to summary |
|---|---|
| public static ThreadFactory resettingThreadFactory(final ThreadFactory delegate) throws SecurityException Create a thread factory which resets all thread-local storage and delegates to the given thread factory.
You must have the
| |
| setContextClassLoader | back to summary |
|---|---|
| pack-priv static void setContextClassLoader(final Thread thread, final ClassLoader classLoader) Privileged method to set the context class loader of the given thread.
| |