org.mule.transport
Interface WorkTracker

All Superinterfaces:
Disposable
All Known Implementing Classes:
ConcurrentWorkTracker

public interface WorkTracker
extends Disposable

Tracks works that are running in behalf of a given component.


Field Summary
 
Fields inherited from interface org.mule.api.lifecycle.Disposable
PHASE_NAME
 
Method Summary
 void addWork(Runnable work)
          Adds a work for tracking.
 List<Runnable> pendingWorks()
          Returns a list of works that are not completed.
 void removeWork(Runnable work)
          Removes a work from tracking.
 
Methods inherited from interface org.mule.api.lifecycle.Disposable
dispose
 

Method Detail

pendingWorks

List<Runnable> pendingWorks()
Returns a list of works that are not completed.

Returns:
an immutable list of works

addWork

void addWork(Runnable work)
Adds a work for tracking.

Parameters:
work - non null work.

removeWork

void removeWork(Runnable work)
Removes a work from tracking.

Parameters:
work - non null work


Copyright © 2003-2014 MuleSoft, Inc.. All Rights Reserved.