Search in sources :

Example 11 with DefaultQueueConfiguration

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

the class QueueProfile method configureQueue.

public QueueConfiguration configureQueue(String component, QueueManager queueManager) throws InitialisationException {
    QueueConfiguration qc = new DefaultQueueConfiguration(maxOutstandingMessages, persistent);
    queueManager.setQueueConfiguration(component, qc);
    return qc;
}
Also used : DefaultQueueConfiguration(org.mule.runtime.core.api.util.queue.DefaultQueueConfiguration) DefaultQueueConfiguration(org.mule.runtime.core.api.util.queue.DefaultQueueConfiguration) QueueConfiguration(org.mule.runtime.core.api.util.queue.QueueConfiguration)

Example 12 with DefaultQueueConfiguration

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

the class TransactionalQueueManager method getRecoveryQueue.

@Override
public RecoverableQueueStore getRecoveryQueue(String queueName) {
    if (queuesAccessedForRecovery.containsKey(queueName)) {
        return queuesAccessedForRecovery.get(queueName);
    }
    DefaultQueueStore queueStore = createQueueStore(queueName, new DefaultQueueConfiguration(0, true));
    queuesAccessedForRecovery.put(queueName, queueStore);
    return queueStore;
}
Also used : DefaultQueueConfiguration(org.mule.runtime.core.api.util.queue.DefaultQueueConfiguration)

Aggregations

DefaultQueueConfiguration (org.mule.runtime.core.api.util.queue.DefaultQueueConfiguration)12 Test (org.junit.Test)6 QueueManager (org.mule.runtime.core.api.util.queue.QueueManager)5 QueueSession (org.mule.runtime.core.api.util.queue.QueueSession)5 Queue (org.mule.runtime.core.api.util.queue.Queue)3 LocalTxQueueTransactionRecoverer (org.mule.runtime.core.internal.util.journal.queue.LocalTxQueueTransactionRecoverer)3 Serializable (java.io.Serializable)2 Latch (org.mule.runtime.api.util.concurrent.Latch)2 LocalTxQueueTransactionJournal (org.mule.runtime.core.internal.util.journal.queue.LocalTxQueueTransactionJournal)2 AbstractQueueManager (org.mule.runtime.core.internal.util.queue.AbstractQueueManager)2 DefaultMuleConfiguration (org.mule.runtime.core.api.config.DefaultMuleConfiguration)1 MuleConfiguration (org.mule.runtime.core.api.config.MuleConfiguration)1 ResourceManagerException (org.mule.runtime.core.api.transaction.xa.ResourceManagerException)1 QueueConfiguration (org.mule.runtime.core.api.util.queue.QueueConfiguration)1 DefaultMuleContext (org.mule.runtime.core.internal.context.DefaultMuleContext)1