1
2
3
4
5
6
7
8
9
10
11 package org.mule.util.queue;
12
13
14
15
16
17 public class QueueConfiguration
18 {
19
20 protected int capacity;
21 protected boolean persistent;
22
23 public QueueConfiguration(int capacity, boolean persistent)
24 {
25 this.capacity = capacity;
26 this.persistent = persistent;
27 }
28
29 public QueueConfiguration(int capacity)
30 {
31 this(capacity, false);
32 }
33
34 public QueueConfiguration(boolean persistent)
35 {
36 this(0, persistent);
37 }
38
39 public QueueConfiguration()
40 {
41 this(0, false);
42 }
43
44
45
46
47 public int getCapacity()
48 {
49 return capacity;
50 }
51
52
53
54
55 public void setCapacity(int capacity)
56 {
57 this.capacity = capacity;
58 }
59
60
61
62
63 public boolean isPersistent()
64 {
65 return persistent;
66 }
67
68
69
70
71 public void setPersistent(boolean persistent)
72 {
73 this.persistent = persistent;
74 }
75
76 }