-
Notifications
You must be signed in to change notification settings - Fork 912
/
JournalRecordIds.java
111 lines (74 loc) · 3.4 KB
/
JournalRecordIds.java
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.activemq.artemis.core.persistence.impl.journal;
/**
* These record IDs definitions are meant to be public.
* <p>
* If any other component or any test needs to validate user-record-types from the Journal directly
* This is where the definitions will exist and this is what these tests should be using to verify
* the IDs.
*/
public final class JournalRecordIds {
// grouping journal record type
public static final byte GROUP_RECORD = 20;
// BindingsImpl journal record type
public static final byte QUEUE_BINDING_RECORD = 21;
public static final byte QUEUE_STATUS_RECORD = 22;
/**
* Records storing the current recordID number.
*
* @see org.apache.activemq.artemis.utils.IDGenerator
* @see BatchingIDGenerator
*/
public static final byte ID_COUNTER_RECORD = 24;
public static final byte ADDRESS_SETTING_RECORD = 25;
public static final byte SECURITY_SETTING_RECORD = 26;
public static final byte DIVERT_RECORD = 27;
public static final byte BRIDGE_RECORD = 28;
// Message journal record types
/**
* This is used when a large message is created but not yet stored on the system.
* <p>
* We use this to avoid temporary files missing
*/
public static final byte ADD_LARGE_MESSAGE_PENDING = 29;
public static final byte ADD_LARGE_MESSAGE = 30;
public static final byte ADD_MESSAGE = 31;
public static final byte ADD_REF = 32;
public static final byte ACKNOWLEDGE_REF = 33;
public static final byte UPDATE_DELIVERY_COUNT = 34;
public static final byte PAGE_TRANSACTION = 35;
public static final byte SET_SCHEDULED_DELIVERY_TIME = 36;
public static final byte DUPLICATE_ID = 37;
public static final byte HEURISTIC_COMPLETION = 38;
public static final byte ACKNOWLEDGE_CURSOR = 39;
public static final byte PAGE_CURSOR_COUNTER_VALUE = 40;
public static final byte PAGE_CURSOR_COUNTER_INC = 41;
public static final byte PAGE_CURSOR_COMPLETE = 42;
public static final byte PAGE_CURSOR_PENDING_COUNTER = 43;
public static final byte ADDRESS_BINDING_RECORD = 44;
public static final byte ADD_MESSAGE_PROTOCOL = 45;
public static final byte ADDRESS_STATUS_RECORD = 46;
public static final byte USER_RECORD = 47;
public static final byte ROLE_RECORD = 48;
// Used to record the large message body on the journal when history is on
public static final byte ADD_MESSAGE_BODY = 49;
public static final byte KEY_VALUE_PAIR_RECORD = 50;
public static final byte CONNECTOR_RECORD = 51;
public static final byte ADDRESS_SETTING_RECORD_JSON = 52;
public static final byte ACK_RETRY = 53;
}