Search in sources :

Example 21 with Queue

use of org.mule.runtime.core.api.util.queue.Queue in project mule by mulesoft.

the class QueueTestComponent method testDisposal.

public void testDisposal(QueueManager mgr, boolean transactional) throws Exception {
    final String queueName = "myQueue";
    mgr.start();
    QueueSession session = mgr.getQueueSession();
    if (transactional) {
        session.begin();
    }
    Queue queue = mgr.getQueueSession().getQueue(queueName);
    this.assertQueueDisposal(mgr, queue, transactional ? session : null, queueName);
}
Also used : Queue(org.mule.runtime.core.api.util.queue.Queue) QueueSession(org.mule.runtime.core.api.util.queue.QueueSession)

Aggregations

Queue (org.mule.runtime.core.api.util.queue.Queue)21 QueueSession (org.mule.runtime.core.api.util.queue.QueueSession)20 Test (org.junit.Test)19 AbstractQueueManager (org.mule.runtime.core.internal.util.queue.AbstractQueueManager)18 QueueManager (org.mule.runtime.core.api.util.queue.QueueManager)14 Latch (org.mule.runtime.api.util.concurrent.Latch)7 DefaultQueueConfiguration (org.mule.runtime.core.api.util.queue.DefaultQueueConfiguration)3 Serializable (java.io.Serializable)2 Random (java.util.Random)2