Coverage Report - org.mule.util.queue.QueueConfiguration
 
Classes in this File Line Coverage Branch Coverage Complexity
QueueConfiguration
50%
8/16
N/A
1
 
 1  
 /*
 2  
  * $Id: QueueConfiguration.java 8077 2007-08-27 20:15:25Z 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 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  
 public class QueueConfiguration
 14  
 {
 15  
 
 16  
     protected int capacity;
 17  
     protected boolean persistent;
 18  
 
 19  
     public QueueConfiguration(int capacity, boolean persistent)
 20  1622
     {
 21  1622
         this.capacity = capacity;
 22  1622
         this.persistent = persistent;
 23  1622
     }
 24  
 
 25  
     public QueueConfiguration(int capacity)
 26  
     {
 27  8
         this(capacity, false);
 28  8
     }
 29  
 
 30  
     public QueueConfiguration(boolean persistent)
 31  
     {
 32  1224
         this(0, persistent);
 33  1224
     }
 34  
 
 35  
     public QueueConfiguration()
 36  
     {
 37  0
         this(0, false);
 38  0
     }
 39  
 
 40  
     /**
 41  
      * @return Returns the capacity.
 42  
      */
 43  
     public int getCapacity()
 44  
     {
 45  0
         return capacity;
 46  
     }
 47  
 
 48  
     /**
 49  
      * @param capacity The capacity to set.
 50  
      */
 51  
     public void setCapacity(int capacity)
 52  
     {
 53  0
         this.capacity = capacity;
 54  0
     }
 55  
 
 56  
     /**
 57  
      * @return Returns the persistent.
 58  
      */
 59  
     public boolean isPersistent()
 60  
     {
 61  0
         return persistent;
 62  
     }
 63  
 
 64  
     /**
 65  
      * @param persistent The persistent to set.
 66  
      */
 67  
     public void setPersistent(boolean persistent)
 68  
     {
 69  0
         this.persistent = persistent;
 70  0
     }
 71  
 
 72  
 }