use of com.axway.ats.agent.core.threading.AbstractQueueLoader in project ats-framework by Axway.
the class MultiThreadedActionHandler method cancelQueue.
/**
* Cancel queue
*/
public void cancelQueue(String queueName) {
//cancel queue
for (QueueLoader queueLoader : queueLoadersMap.values()) {
if ((queueLoader instanceof AbstractQueueLoader) && ((AbstractQueueLoader) queueLoader).getName().equals(queueName)) {
queueLoader.cancel();
}
}
log.info("Cancelled execution of queue '" + queueName + "'");
// cleanup the FINISHED queues
cleanupFinishedQueues();
}
Aggregations