KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > mule > impl > space > FileSpaceFactory


1 /*
2  * $Id: FileSpaceFactory.java 3865 2006-11-09 17:11:08Z Lajos $
3  * --------------------------------------------------------------------------------------
4  * Copyright (c) MuleSource, Inc. All rights reserved. http://www.mulesource.com
5  *
6  * The software in this package is published under the terms of the MuleSource MPL
7  * license, a copy of which has been included with this distribution in the
8  * LICENSE.txt file.
9  */

10
11 package org.mule.impl.space;
12
13 import org.mule.util.queue.FilePersistenceStrategy;
14
15 /**
16  * A space that uses file-based persistence and enables caching by default
17  */

18 public class FileSpaceFactory extends DefaultSpaceFactory
19 {
20
21     public FileSpaceFactory(boolean enableMonitorEvents)
22     {
23         super(enableMonitorEvents);
24         setEnableCaching(true);
25         setPersistenceStrategy(new FilePersistenceStrategy());
26     }
27
28     public FileSpaceFactory(boolean enableMonitorEvents, int capacity)
29     {
30         super(enableMonitorEvents, capacity);
31         setEnableCaching(true);
32         setPersistenceStrategy(new FilePersistenceStrategy());
33     }
34 }
35
Popular Tags