KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > mq > il > oil2 > OIL2Constants


1 /*
2  * JBoss, the OpenSource J2EE webOS
3  *
4  * Distributable under LGPL license.
5  * See terms of license at gnu.org.
6  */

7 package org.jboss.mq.il.oil2;
8
9 /**
10  *
11  *
12  * @author <a HREF="mailto:hiram.chirino@jboss.org">Hiram Chirino</a>
13  * @author Brian Weaver (weave@opennms.org)
14  * @version $Revision: 1.2 $
15  */

16 interface OIL2Constants
17 {
18    // Success and error conditions are
19
// defined here
20
//
21
final static byte RESULT_VOID = 1;
22    final static byte RESULT_OBJECT = 2;
23    final static byte RESULT_EXCEPTION = 3;
24
25    // The "message" codes start here.
26
//
27
final static byte CLIENT_RECEIVE = -1;
28    final static byte CLIENT_DELETE_TEMPORARY_DESTINATION = -2;
29    final static byte CLIENT_CLOSE = -3;
30    final static byte CLIENT_PONG = -4;
31    
32    final static byte SERVER_ACKNOWLEDGE = 1;
33    final static byte SERVER_ADD_MESSAGE = 2;
34    final static byte SERVER_BROWSE = 3;
35    final static byte SERVER_CHECK_ID = 4;
36    final static byte SERVER_CONNECTION_CLOSING = 5;
37    final static byte SERVER_CREATE_QUEUE = 6;
38    final static byte SERVER_CREATE_TOPIC = 7;
39    final static byte SERVER_DELETE_TEMPORARY_DESTINATION = 8;
40    final static byte SERVER_GET_ID = 9;
41    final static byte SERVER_GET_TEMPORARY_QUEUE = 10;
42    final static byte SERVER_GET_TEMPORARY_TOPIC = 11;
43    final static byte SERVER_RECEIVE = 12;
44    final static byte SERVER_SET_ENABLED = 13;
45    final static byte SERVER_SET_SPY_DISTRIBUTED_CONNECTION = 14;
46    final static byte SERVER_SUBSCRIBE = 15;
47    final static byte SERVER_TRANSACT = 16;
48    final static byte SERVER_UNSUBSCRIBE = 17;
49    final static byte SERVER_DESTROY_SUBSCRIPTION = 18;
50    final static byte SERVER_CHECK_USER = 19;
51    final static byte SERVER_PING = 20;
52    final static byte SERVER_CLOSE = 21;
53    final static byte SERVER_AUTHENTICATE = 22;
54 }
55 /*
56 vim:tabstop=3:expandtab:shiftwidth=3
57 */

58
Popular Tags