/** * Run a task, invoking the given notifier with the given attachment. * * @param task the task * @param notifier the notifier * @param attachment the attachment * @param <R> the task type * @param <A> the attachment type */ public static <R extends Runnable, A> void run(R task, TaskNotifier<? super R, ? super A> notifier, A attachment) { run(task, directExecutor(), notifier, attachment); }
public void execute(final Runnable command) { JBossExecutors.run(command, getDelegate(), notifier, attachment); } }
public void run() { JBossExecutors.run(getDelegate(), notifier, attachment); } }
/** * Run a task, invoking the given notifier with the given attachment. * * @param task the task * @param notifier the notifier * @param attachment the attachment * @param <R> the task type * @param <A> the attachment type */ public static <R extends Runnable, A> void run(R task, TaskNotifier<? super R, ? super A> notifier, A attachment) { run(task, directExecutor(), notifier, attachment); }
public void execute(final Runnable command) { JBossExecutors.run(command, getDelegate(), notifier, attachment); } }
public void run() { JBossExecutors.run(getDelegate(), notifier, attachment); } }
/** * Run a task, invoking the given notifier with the given attachment. * * @param task the task * @param notifier the notifier * @param attachment the attachment * @param <R> the task type * @param <A> the attachment type */ public static <R extends Runnable, A> void run(R task, TaskNotifier<? super R, ? super A> notifier, A attachment) { run(task, directExecutor(), notifier, attachment); }
public void execute(final Runnable command) { JBossExecutors.run(command, getDelegate(), notifier, attachment); } }
public void run() { JBossExecutors.run(getDelegate(), notifier, attachment); } }