View Javadoc
1   /*
2    * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
3    * The software in this package is published under the terms of the CPAL v1.0
4    * license, a copy of which has been included with this distribution in the
5    * LICENSE.txt file.
6    */
7   package org.mule.util.queue;
8   
9   import org.mule.api.lifecycle.Startable;
10  import org.mule.api.lifecycle.Stoppable;
11  
12  /**
13   * A Queue manager is responsible for manageing one or more Queue resources and
14   * providing common support fot transactions and persistence
15   */
16  public interface QueueManager extends Startable, Stoppable
17  {
18  
19      QueueSession getQueueSession();
20  
21      void setDefaultQueueConfiguration(QueueConfiguration config);
22  
23      void setQueueConfiguration(String queueName, QueueConfiguration config);
24  
25      /**
26       * @return Returns the persistenceStrategy.
27       */
28      QueuePersistenceStrategy getPersistenceStrategy();
29  
30      /**
31       * @param persistenceStrategy The persistenceStrategy to set.
32       */
33      void setPersistenceStrategy(QueuePersistenceStrategy persistenceStrategy);
34  
35      QueuePersistenceStrategy getMemoryPersistenceStrategy();
36  
37      void setMemoryPersistenceStrategy(QueuePersistenceStrategy memoryPersistenceStrategy);
38  
39  }