KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > presumo > jms > message > SystemMessageConstants


1 /**
2  * This file is part of Presumo.
3  *
4  * Presumo is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * Presumo is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with Presumo; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17  *
18  *
19  * Copyright 2001 Dan Greff
20  */

21 package com.presumo.jms.message;
22
23 /**
24  * Type definitions for all system messages (i.e. non-user messages)
25  *
26  * @author Dan Greff
27  */

28 public interface SystemMessageConstants
29 {
30   // Note:: As soon as there are more than 7 types change
31
// MessageHeader.marshal and MessageHeader.unmarshal to
32
// read and write a short instead of a byte for the System
33
// Type header value.
34
public static final int DEFAULT = 0;
35   public static final int USER_MSG = DEFAULT;
36   public static final int NOT_A_SYSTEM_MSG = DEFAULT;
37   
38   public static final int REMOTE_FILTER_CHANGE_TYPE = 1;
39   public static final int ACKS_MSG_TYPE = 2;
40   public static final int QUEUE_REQUEST = 3;
41 }
Popular Tags