public class ConcurrentWorkTracker extends Object implements WorkTracker
Modifier and Type | Field and Description |
---|---|
protected static 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.
|
protected static final Log logger
public List<Runnable> pendingWorks()
WorkTracker
pendingWorks
in interface WorkTracker
public void addWork(Runnable work)
WorkTracker
addWork
in interface WorkTracker
work
- non null work.public void removeWork(Runnable work)
WorkTracker
removeWork
in interface WorkTracker
work
- non null workpublic void dispose()
Disposable
dispose
in interface Disposable
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.