public class ConcurrentWorkTracker extends Object implements WorkTracker
| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.commons.logging.Log |
logger |
PHASE_NAME| Constructor and Description |
|---|
ConcurrentWorkTracker() |
| Modifier and Type | Method and Description |
|---|---|
void |
addWork(Runnable work)
Adds a work for tracking.
|
void |
dispose()
A lifecycle method where implementor should free up any resources.
|
List<Runnable> |
pendingWorks()
Returns a list of works that are not completed.
|
void |
removeWork(Runnable work)
Removes a work from tracking.
|
public List<Runnable> pendingWorks()
WorkTrackerpendingWorks in interface WorkTrackerpublic void addWork(Runnable work)
WorkTrackeraddWork in interface WorkTrackerwork - non null work.public void removeWork(Runnable work)
WorkTrackerremoveWork in interface WorkTrackerwork - non null workpublic void dispose()
Disposabledispose in interface DisposableCopyright © 2003–2015 MuleSoft, Inc.. All rights reserved.