| Package | Description |
|---|---|
| org.jboss.threads |
| Modifier and Type | Field and Description |
|---|---|
private TaskNotifier<java.lang.Runnable,? super A> |
NotifyingDirectExecutor.notifier |
private TaskNotifier<? super R,? super A> |
NotifyingRunnable.notifier |
| Modifier and Type | Method and Description |
|---|---|
private static <R extends java.lang.Runnable,A> |
JBossExecutors.failed(TaskNotifier<? super R,? super A> notifier,
java.lang.Throwable reason,
R runnable,
A attachment) |
private static <R extends java.lang.Runnable,A> |
JBossExecutors.finished(TaskNotifier<? super R,? super A> notifier,
R runnable,
A attachment) |
static <A> DirectExecutor |
JBossExecutors.notifyingDirectExecutor(DirectExecutor delegate,
TaskNotifier<java.lang.Runnable,? super A> notifier,
A attachment)
Get a notifying direct executor.
|
static <R extends java.lang.Runnable,A> |
JBossExecutors.notifyingRunnable(R task,
TaskNotifier<? super R,? super A> notifier,
A attachment)
Get a notifying runnable wrapper for a task.
|
static <R extends java.lang.Runnable,A> |
JBossExecutors.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 <R extends java.lang.Runnable,A> |
JBossExecutors.run(R task,
TaskNotifier<? super R,? super A> notifier,
A attachment)
Run a task, invoking the given notifier with the given attachment.
|
private static <R extends java.lang.Runnable,A> |
JBossExecutors.started(TaskNotifier<? super R,? super A> notifier,
R runnable,
A attachment) |
| Constructor and Description |
|---|
NotifyingDirectExecutor(DirectExecutor delegate,
TaskNotifier<java.lang.Runnable,? super A> notifier,
A attachment) |
NotifyingRunnable(R delegate,
TaskNotifier<? super R,? super A> notifier,
A attachment) |