Added method to get the number of tasks on the queue.

git-svn-id: https://samskivert.googlecode.com/svn/trunk@1580 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
eric
2005-01-25 20:13:15 +00:00
parent 2db3780ccf
commit 811d8700de
@@ -72,6 +72,15 @@ public class SerialExecutor
}
}
/**
* Returns the number of ExecutorTasks that are currently waiting on
* the queue.
*/
public int getQueueSize ()
{
return _queue.size();
}
/**
* Execute the next task, if applicable.
*/