Source code: proxy/jmsapi/ProxyStoredObjectType.java
1
2 package proxy.jmsapi;
3
4 /**
5 * interface containig constants used to recognise
6 * object's type
7 */
8
9 public class ProxyStoredObjectType {
10
11 public final int TOPIC = 0;
12
13 public final int QUEUE = 1; // we assume that this bit is significant
14 // thus all constants below
15 // should be even
16
17 public final int CONNECTION_FACTORY = 2;
18
19 public final int CONNECTION = 4;
20
21 public final int CONSUMER = 6;
22
23 public final int PRODUCER = 8;
24
25 public final int SESSION = 10;
26
27 public final int JNDIOBJECT = 12;
28
29 public final int MESSAGE = 14;
30
31 public final int TEMPRORARY = 16;
32
33 public int QUEUE_(int _const)
34 {
35 return _const | QUEUE;
36 }
37
38 public int TOPIC_(int _const)
39 {
40 return _const & (~QUEUE);
41 }
42
43 }