Search in sources :

Example 1 with AbstractQueueLoader

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();
}
Also used : QueueLoader(com.axway.ats.agent.core.threading.QueueLoader) AbstractQueueLoader(com.axway.ats.agent.core.threading.AbstractQueueLoader) AbstractQueueLoader(com.axway.ats.agent.core.threading.AbstractQueueLoader)

Aggregations

AbstractQueueLoader (com.axway.ats.agent.core.threading.AbstractQueueLoader)1 QueueLoader (com.axway.ats.agent.core.threading.QueueLoader)1