Package org.mule.util.queue

Source Code of org.mule.util.queue.NoPersistenceTestCase

/*
* $Id: NoPersistenceTestCase.java 21762 2011-05-03 01:29:28Z mike.schilling $
* --------------------------------------------------------------------------------------
* Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
*
* The software in this package is published under the terms of the CPAL v1.0
* license, a copy of which has been included with this distribution in the
* LICENSE.txt file.
*/

package org.mule.util.queue;

import org.mule.util.store.SimpleMemoryObjectStore;

import java.io.Serializable;

public class NoPersistenceTestCase extends AbstractTransactionQueueManagerTestCase
{
    @Override
    protected TransactionalQueueManager createQueueManager() throws Exception
    {
        TransactionalQueueManager mgr = new TransactionalQueueManager();
        mgr.setDefaultQueueConfiguration(new QueueConfiguration(0, new SimpleMemoryObjectStore()));
        return mgr;
    }

    @Override
    protected boolean isPersistent()
    {
        return false;
    }
}
TOP

Related Classes of org.mule.util.queue.NoPersistenceTestCase

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.