diff --git a/projects/samskivert/src/java/com/samskivert/util/SerialExecutor.java b/projects/samskivert/src/java/com/samskivert/util/SerialExecutor.java index 87e4e822..ed6c729a 100644 --- a/projects/samskivert/src/java/com/samskivert/util/SerialExecutor.java +++ b/projects/samskivert/src/java/com/samskivert/util/SerialExecutor.java @@ -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. */