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:
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user