Uses of Interface
org.jboss.threads.DirectExecutor
Packages that use DirectExecutor
-
Uses of DirectExecutor in org.jboss.threads
Subinterfaces of DirectExecutor in org.jboss.threadsMethods in org.jboss.threads that return DirectExecutorModifier and TypeMethodDescriptionstatic DirectExecutorJBossExecutors.cleanupExecutor(DirectExecutor delegate, Runnable cleaner) Create an executor which runs the given cleanup task after running its given task.static DirectExecutorJBossExecutors.contextClassLoaderExecutor(DirectExecutor delegate, ClassLoader taskClassLoader) Create a direct executor which runs tasks with the given context class loader.static DirectExecutorJBossExecutors.directExecutor()Get the direct executor.static DirectExecutorJBossExecutors.discardingExecutor()Get the discarding executor.static DirectExecutorJBossExecutors.exceptionLoggingExecutor(DirectExecutor delegate) Create a direct executor which consumes and logs errors that are thrown to the default thread error category"org.jboss.threads.errors".static DirectExecutorJBossExecutors.exceptionLoggingExecutor(DirectExecutor delegate, org.jboss.logging.Logger log) Create a direct executor which consumes and logs errors that are thrown.static DirectExecutorJBossExecutors.exceptionLoggingExecutor(DirectExecutor delegate, org.jboss.logging.Logger log, org.jboss.logging.Logger.Level level) Create a direct executor which consumes and logs errors that are thrown.static DirectExecutorJBossExecutors.initializingExecutor(DirectExecutor delegate, Runnable initializer) Create an executor which runs the given initialization task before running its given task.static <A> DirectExecutorJBossExecutors.notifyingDirectExecutor(DirectExecutor delegate, TaskNotifier<Runnable, ? super A> notifier, A attachment) Get a notifying direct executor.static DirectExecutorJBossExecutors.privilegedExecutor(DirectExecutor delegate) Create a direct executor which runs with the privileges given by the current access control context.static DirectExecutorJBossExecutors.rejectingExecutor()Get the rejecting executor.static DirectExecutorJBossExecutors.rejectingExecutor(String message) Get a rejecting executor.static DirectExecutorJBossExecutors.resettingExecutor(DirectExecutor delegate) Create a direct executor which delegates tasks to the given executor, and then clears all thread-local data after each task completes (regardless of outcome).static DirectExecutorJBossExecutors.threadFormattedNameExecutor(DirectExecutor delegate, String newName) Create a direct executor which changes the thread name for the duration of a task using a formatted name.static DirectExecutorJBossExecutors.threadNameExecutor(DirectExecutor delegate, String newName) Create a direct executor which changes the thread name for the duration of a task.static DirectExecutorJBossExecutors.threadNameNotateExecutor(DirectExecutor delegate, String notation) Create a direct executor which adds a note to the thread name for the duration of a task.Methods in org.jboss.threads with parameters of type DirectExecutorModifier and TypeMethodDescriptionstatic DirectExecutorJBossExecutors.cleanupExecutor(DirectExecutor delegate, Runnable cleaner) Create an executor which runs the given cleanup task after running its given task.static DirectExecutorJBossExecutors.contextClassLoaderExecutor(DirectExecutor delegate, ClassLoader taskClassLoader) Create a direct executor which runs tasks with the given context class loader.static BlockingExecutorJBossExecutors.directBlockingExecutor(DirectExecutor delegate) Deprecated.static DirectExecutorJBossExecutors.exceptionLoggingExecutor(DirectExecutor delegate) Create a direct executor which consumes and logs errors that are thrown to the default thread error category"org.jboss.threads.errors".static DirectExecutorJBossExecutors.exceptionLoggingExecutor(DirectExecutor delegate, org.jboss.logging.Logger log) Create a direct executor which consumes and logs errors that are thrown.static DirectExecutorJBossExecutors.exceptionLoggingExecutor(DirectExecutor delegate, org.jboss.logging.Logger log, org.jboss.logging.Logger.Level level) Create a direct executor which consumes and logs errors that are thrown.voidWrappingExecutor.execute(DirectExecutor directExecutor, Runnable task) Run the given task within the given wrapper.static voidJBossThread.executeWithInterruptDeferred(DirectExecutor directExecutor, Runnable task) Defer interrupts for the duration of some task.static ExecutorJBossExecutors.executor(WrappingExecutor delegate, DirectExecutor taskWrapper) An executor which delegates to a wrapping executor, wrapping each task in a task wrapper.static RunnableJBossExecutors.executorTask(DirectExecutor executor, Runnable task) Get a task that runs the given task through the given direct executor.static DirectExecutorJBossExecutors.initializingExecutor(DirectExecutor delegate, Runnable initializer) Create an executor which runs the given initialization task before running its given task.static <A> DirectExecutorJBossExecutors.notifyingDirectExecutor(DirectExecutor delegate, TaskNotifier<Runnable, ? super A> notifier, A attachment) Get a notifying direct executor.static DirectExecutorJBossExecutors.privilegedExecutor(DirectExecutor delegate) Create a direct executor which runs with the privileges given by the current access control context.static DirectExecutorServiceJBossExecutors.protectedDirectExecutorService(DirectExecutor target) Wrap a direct executor with anDirectExecutorServiceinstance which supports all the features ofExecutorServiceexcept for shutting down the executor.static DirectExecutorJBossExecutors.resettingExecutor(DirectExecutor delegate) Create a direct executor which delegates tasks to the given executor, and then clears all thread-local data after each task completes (regardless of outcome).static <R extends Runnable, A>
voidJBossExecutors.run(R task, DirectExecutor directExecutor, TaskNotifier<? super R, ? super A> notifier, A attachment) Run a task through the given direct executor, invoking the given notifier with the given attachment.static BlockingExecutorJBossExecutors.threadFactoryExecutor(ThreadFactory factory, int maxThreads, boolean blocking, DirectExecutor taskExecutor) Deprecated.static DirectExecutorJBossExecutors.threadFormattedNameExecutor(DirectExecutor delegate, String newName) Create a direct executor which changes the thread name for the duration of a task using a formatted name.static DirectExecutorJBossExecutors.threadNameExecutor(DirectExecutor delegate, String newName) Create a direct executor which changes the thread name for the duration of a task.static DirectExecutorJBossExecutors.threadNameNotateExecutor(DirectExecutor delegate, String notation) Create a direct executor which adds a note to the thread name for the duration of a task.static ExecutorJBossExecutors.wrappingExecutor(DirectExecutor taskWrapper, Executor delegate) An executor which delegates to another executor, wrapping each task in a task wrapper.static ThreadFactoryJBossExecutors.wrappingThreadFactory(DirectExecutor taskWrapper, ThreadFactory delegate) Creates a thread factory which executes the thread task via the given task wrapping executor.Constructors in org.jboss.threads with parameters of type DirectExecutorModifierConstructorDescriptionQueueExecutor(int coreThreads, int maxThreads, long keepAliveTime, TimeUnit keepAliveTimeUnit, Queue<Runnable> queue, ThreadFactory threadFactory, boolean blocking, Executor handoffExecutor, DirectExecutor taskExecutor) Deprecated.Create a new instance.QueuelessExecutor(ThreadFactory threadFactory, DirectExecutor taskExecutor, Executor handoffExecutor, long keepAliveTime) Deprecated.
EnhancedQueueExecutorinstead.