Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
QueueManager |
|
| 1.0;1 |
1 | /* | |
2 | * $Id: QueueManager.java 7963 2007-08-21 08:53:15Z dirk.olmes $ | |
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 CPAL v1.0 | |
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 | public interface QueueManager | |
20 | { | |
21 | ||
22 | void start() throws ResourceManagerSystemException; | |
23 | ||
24 | void stop() throws ResourceManagerSystemException; | |
25 | ||
26 | QueueSession getQueueSession(); | |
27 | ||
28 | void close(); | |
29 | ||
30 | void setDefaultQueueConfiguration(QueueConfiguration config); | |
31 | ||
32 | void setQueueConfiguration(String queueName, QueueConfiguration config); | |
33 | ||
34 | /** | |
35 | * @return Returns the persistenceStrategy. | |
36 | */ | |
37 | QueuePersistenceStrategy getPersistenceStrategy(); | |
38 | ||
39 | /** | |
40 | * @param persistenceStrategy The persistenceStrategy to set. | |
41 | */ | |
42 | void setPersistenceStrategy(QueuePersistenceStrategy persistenceStrategy); | |
43 | ||
44 | QueuePersistenceStrategy getMemoryPersistenceStrategy(); | |
45 | ||
46 | void setMemoryPersistenceStrategy(QueuePersistenceStrategy memoryPersistenceStrategy); | |
47 | ||
48 | } |