1
2
3
4
5
6
7
8
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 {
21 this.capacity = capacity;
22 this.persistent = persistent;
23 }
24
25 public QueueConfiguration(int capacity)
26 {
27 this(capacity, false);
28 }
29
30 public QueueConfiguration(boolean persistent)
31 {
32 this(0, persistent);
33 }
34
35 public QueueConfiguration()
36 {
37 this(0, false);
38 }
39
40
41
42
43 public int getCapacity()
44 {
45 return capacity;
46 }
47
48
49
50
51 public void setCapacity(int capacity)
52 {
53 this.capacity = capacity;
54 }
55
56
57
58
59 public boolean isPersistent()
60 {
61 return persistent;
62 }
63
64
65
66
67 public void setPersistent(boolean persistent)
68 {
69 this.persistent = persistent;
70 }
71
72 }