/** * Get a notifying direct executor. The notifier will be invoked when each task is run. * * @param delegate the executor which will actually run the task * @param notifier the notifier * @param attachment the attachment * @param <A> the attachment type * @return the direct executor */ public static <A> DirectExecutor notifyingDirectExecutor(DirectExecutor delegate, TaskNotifier<Runnable, ? super A> notifier, A attachment) { return new NotifyingDirectExecutor<A>(delegate, notifier, attachment); }
public void execute(final Runnable command) { JBossExecutors.run(command, getDelegate(), notifier, attachment); } }
public void execute(final Runnable command) { JBossExecutors.run(command, getDelegate(), notifier, attachment); } }
/** * Get a notifying direct executor. The notifier will be invoked when each task is run. * * @param delegate the executor which will actually run the task * @param notifier the notifier * @param attachment the attachment * @param <A> the attachment type * @return the direct executor */ public static <A> DirectExecutor notifyingDirectExecutor(DirectExecutor delegate, TaskNotifier<Runnable, ? super A> notifier, A attachment) { return new NotifyingDirectExecutor<A>(delegate, notifier, attachment); }
public void execute(final Runnable command) { JBossExecutors.run(command, getDelegate(), notifier, attachment); } }
/** * Get a notifying direct executor. The notifier will be invoked when each task is run. * * @param delegate the executor which will actually run the task * @param notifier the notifier * @param attachment the attachment * @param <A> the attachment type * @return the direct executor */ public static <A> DirectExecutor notifyingDirectExecutor(DirectExecutor delegate, TaskNotifier<Runnable, ? super A> notifier, A attachment) { return new NotifyingDirectExecutor<A>(delegate, notifier, attachment); }