Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 34f794f5f3462b5098e64b122cca2559e732725f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
/*
 * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 * 
 * Contributors:
 *    Eike Stepper - initial API and implementation
 */
package org.eclipse.net4j.jms;

/**
 * @author Eike Stepper
 */
public interface JMSProtocolConstants
{
  public static final String PROTOCOL_NAME = "jms"; //$NON-NLS-1$

  // Signals

  public static final short SIGNAL_SYNC = 1;

  public static final short SIGNAL_LOGON = 2;

  public static final short SIGNAL_LOGOFF = 3;

  public static final short SIGNAL_OPEN_SESSION = 4;

  public static final short SIGNAL_CLOSE_SESSION = 5;

  public static final short SIGNAL_REGISTER_CONSUMER = 6;

  public static final short SIGNAL_DEREGISTER_CONSUMER = 7;

  public static final short SIGNAL_CLIENT_MESSAGE = 8;

  public static final short SIGNAL_SERVER_MESSAGE = 9;

  public static final short SIGNAL_ACKNOWLEDGE = 10;

  public static final short SIGNAL_RECOVER = 11;

  public static final short SIGNAL_COMMIT = 12;

  public static final short SIGNAL_ROLLBACK = 13;

  // Message Types

  public static final byte MESSAGE_TYPE_BYTES = 1;

  public static final byte MESSAGE_TYPE_MAP = 2;

  public static final byte MESSAGE_TYPE_OBJECT = 3;

  public static final byte MESSAGE_TYPE_STREAM = 4;

  public static final byte MESSAGE_TYPE_TEXT = 5;

  // Destination Types

  public static final byte DESTINATION_TYPE_NULL = 0;

  public static final byte DESTINATION_TYPE_QUEUE = 1;

  public static final byte DESTINATION_TYPE_TOPIC = 2;

  // Data Types

  public static final byte TYPE_BOOLEAN = 1;

  public static final byte TYPE_BYTE = 2;

  public static final byte TYPE_CHAR = 3;

  public static final byte TYPE_DOUBLE = 4;

  public static final byte TYPE_FLOAT = 5;

  public static final byte TYPE_LONG = 6;

  public static final byte TYPE_SHORT = 7;

  public static final byte TYPE_STRING = 8;
}

Back to the top