KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > mule > util > queue > QueueManager


1 /*
2  * $Id: QueueManager.java 3798 2006-11-04 04:07:14Z aperepel $
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.util.queue;
12
13 import org.mule.util.xa.ResourceManagerSystemException;
14
15 /**
16  * A Queue manager is responsible for manageing one or more Queue resources and
17  * providing common support fot transactions and persistence
18  *
19  * @author <a HREF="mailto:gnt@codehaus.org">Guillaume Nodet</a>
20  * @author <a HREF="mailto:ross.mason@symphonysoft.com">Ross Mason</a>
21  * @version $Revision: 3798 $
22  */

23 public interface QueueManager
24 {
25
26     void start() throws ResourceManagerSystemException;
27
28     void stop() throws ResourceManagerSystemException;
29
30     QueueSession getQueueSession();
31
32     void close();
33
34     void setDefaultQueueConfiguration(QueueConfiguration config);
35
36     void setQueueConfiguration(String JavaDoc queueName, QueueConfiguration config);
37
38     /**
39      * @return Returns the persistenceStrategy.
40      */

41     public QueuePersistenceStrategy getPersistenceStrategy();
42
43     /**
44      * @param persistenceStrategy The persistenceStrategy to set.
45      */

46     public void setPersistenceStrategy(QueuePersistenceStrategy persistenceStrategy);
47
48     public QueuePersistenceStrategy getMemoryPersistenceStrategy();
49
50     public void setMemoryPersistenceStrategy(QueuePersistenceStrategy memoryPersistenceStrategy);
51
52 }
53
Popular Tags