public static void emptyAndRemoveQueue ( String strQueueName ) { TaskQueue taskQueue = QUEUE_MAP . get ( strQueueName ) ; if ( taskQueue != null ) { taskQueue . emptyQueue ( ) ; synchronized ( taskQueue . _queue ) { taskQueue . _shutdown = true ; taskQueue . _queue . notifyAll ( ) ; } QUEUE_MAP . remove ( strQueueName ) ; } }
Clears all the inactive tasks in the specified queue .