Package org.mule.impl.space

Source Code of org.mule.impl.space.JournalledSpaceFactory

/*
* $Id: JournalledSpaceFactory.java 2676 2006-08-10 13:37:18Z holger $
* --------------------------------------------------------------------------------------
* Copyright (c) MuleSource, Inc.  All rights reserved.  http://www.mulesource.com
*
* The software in this package is published under the terms of the BSD style
* license, a copy of which has been included with this distribution in the
* LICENSE.txt file.
*/

package org.mule.impl.space;

import org.mule.util.queue.JournalPersistenceStrategy;

import java.io.IOException;

/**
* A high performance Persistent space that uses journalling to persist items
*
* @author <a href="mailto:ross.mason@symphonysoft.com">Ross Mason</a>
* @version $Revision: 2676 $
*/
public class JournalledSpaceFactory  extends DefaultSpaceFactory {

    public JournalledSpaceFactory(boolean enableMonitorEvents) throws IOException {
        super(enableMonitorEvents);
        setPersistenceStrategy(new JournalPersistenceStrategy());
    }

    public JournalledSpaceFactory(boolean enableMonitorEvents, int capacity) throws IOException {
        super(enableMonitorEvents, capacity);
        setPersistenceStrategy(new JournalPersistenceStrategy());
    }

    public JournalledSpaceFactory(boolean enableMonitorEvents, boolean enableCaching) throws IOException {
        super(enableMonitorEvents);
        setPersistenceStrategy(new JournalPersistenceStrategy());
        setEnableCaching(enableCaching);
    }

    public JournalledSpaceFactory(boolean enableMonitorEvents, int capacity, boolean enableCaching) throws IOException {
        super(enableMonitorEvents, capacity);
        setPersistenceStrategy(new JournalPersistenceStrategy());
        setEnableCaching(enableCaching);
    }
}
TOP

Related Classes of org.mule.impl.space.JournalledSpaceFactory

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.