org.drools.concurrent
Interface ExternalExecutorService.TaskObserver
- All Known Implementing Classes:
- ExternalExecutorService.TaskManager
- Enclosing class:
- ExternalExecutorService
protected static interface ExternalExecutorService.TaskObserver
Interface that defines the methods to be implemented by a task observer.
These methods are called whenever the observable task starts executing,
finishes executing, or raises a Throwable exception.
beforeTaskStarts
void beforeTaskStarts(Runnable task,
Thread thread)
beforeTaskStarts
void beforeTaskStarts(Callable<?> task,
Thread thread)
afterTaskFinishes
void afterTaskFinishes(Runnable task,
Thread thread)
afterTaskFinishes
void afterTaskFinishes(Callable<?> task,
Thread thread)
taskExceptionRaised
void taskExceptionRaised(Runnable task,
Thread thread,
Throwable t)
Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.