rocketmq-client-remoting-nodejs 0.0.0-stage → 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.en.md +428 -0
- package/README.md +424 -2
- package/dist/client/admin.d.ts +229 -0
- package/dist/client/admin.js +2462 -0
- package/dist/client/allocate.d.ts +48 -0
- package/dist/client/allocate.js +365 -0
- package/dist/client/backpressure.d.ts +23 -0
- package/dist/client/backpressure.js +95 -0
- package/dist/client/consumer.d.ts +294 -0
- package/dist/client/consumer.js +3095 -0
- package/dist/client/consumer_result.d.ts +129 -0
- package/dist/client/consumer_result.js +138 -0
- package/dist/client/consumer_stats.d.ts +69 -0
- package/dist/client/consumer_stats.js +258 -0
- package/dist/client/exception.d.ts +39 -0
- package/dist/client/exception.js +36 -0
- package/dist/client/hook.d.ts +145 -0
- package/dist/client/hook.js +171 -0
- package/dist/client/latency.d.ts +61 -0
- package/dist/client/latency.js +239 -0
- package/dist/client/lite_pull_consumer.d.ts +151 -0
- package/dist/client/lite_pull_consumer.js +1096 -0
- package/dist/client/mq_client.d.ts +188 -0
- package/dist/client/mq_client.js +1678 -0
- package/dist/client/mq_client_manager.d.ts +21 -0
- package/dist/client/mq_client_manager.js +129 -0
- package/dist/client/offset_store.d.ts +45 -0
- package/dist/client/offset_store.js +389 -0
- package/dist/client/open_tracing_hook.d.ts +52 -0
- package/dist/client/open_tracing_hook.js +241 -0
- package/dist/client/pop_api.d.ts +28 -0
- package/dist/client/pop_api.js +224 -0
- package/dist/client/pop_consumer.d.ts +23 -0
- package/dist/client/pop_consumer.js +719 -0
- package/dist/client/pop_process_queue.d.ts +15 -0
- package/dist/client/pop_process_queue.js +51 -0
- package/dist/client/process_queue.d.ts +49 -0
- package/dist/client/process_queue.js +261 -0
- package/dist/client/produce_accumulator.d.ts +75 -0
- package/dist/client/produce_accumulator.js +288 -0
- package/dist/client/producer.d.ts +231 -0
- package/dist/client/producer.js +1774 -0
- package/dist/client/pull_api.d.ts +26 -0
- package/dist/client/pull_api.js +264 -0
- package/dist/client/pull_consumer.d.ts +119 -0
- package/dist/client/pull_consumer.js +876 -0
- package/dist/client/pull_schedule_service.d.ts +71 -0
- package/dist/client/pull_schedule_service.js +424 -0
- package/dist/client/request_reply.d.ts +61 -0
- package/dist/client/request_reply.js +232 -0
- package/dist/client/retry_message.d.ts +2 -0
- package/dist/client/retry_message.js +27 -0
- package/dist/client/send_result.d.ts +57 -0
- package/dist/client/send_result.js +70 -0
- package/dist/client/top_addressing.d.ts +20 -0
- package/dist/client/top_addressing.js +75 -0
- package/dist/client/trace_context.d.ts +61 -0
- package/dist/client/trace_context.js +373 -0
- package/dist/client/trace_dispatcher.d.ts +31 -0
- package/dist/client/trace_dispatcher.js +236 -0
- package/dist/client/trace_hook.d.ts +23 -0
- package/dist/client/trace_hook.js +228 -0
- package/dist/client/traceparent.d.ts +9 -0
- package/dist/client/traceparent.js +86 -0
- package/dist/common/boundary_type.d.ts +7 -0
- package/dist/common/boundary_type.js +16 -0
- package/dist/common/compress.d.ts +28 -0
- package/dist/common/compress.js +512 -0
- package/dist/common/message.d.ts +129 -0
- package/dist/common/message.js +214 -0
- package/dist/common/messageClientIdSetter.d.ts +7 -0
- package/dist/common/messageClientIdSetter.js +48 -0
- package/dist/common/messageConst.d.ts +68 -0
- package/dist/common/messageConst.js +68 -0
- package/dist/common/messageDecoder.d.ts +40 -0
- package/dist/common/messageDecoder.js +504 -0
- package/dist/common/messageType.d.ts +11 -0
- package/dist/common/messageType.js +11 -0
- package/dist/common/message_accessor.d.ts +39 -0
- package/dist/common/message_accessor.js +135 -0
- package/dist/common/mixAll.d.ts +106 -0
- package/dist/common/mixAll.js +247 -0
- package/dist/common/recall_message_handle.d.ts +25 -0
- package/dist/common/recall_message_handle.js +98 -0
- package/dist/common/subscriptionData.d.ts +36 -0
- package/dist/common/subscriptionData.js +64 -0
- package/dist/common/sysflag.d.ts +129 -0
- package/dist/common/sysflag.js +96 -0
- package/dist/common/topic_config.d.ts +66 -0
- package/dist/common/topic_config.js +106 -0
- package/dist/common/topic_validator.d.ts +49 -0
- package/dist/common/topic_validator.js +115 -0
- package/dist/common/utilAll.d.ts +39 -0
- package/dist/common/utilAll.js +154 -0
- package/dist/common/validators.d.ts +25 -0
- package/dist/common/validators.js +80 -0
- package/dist/index.d.ts +24 -0
- package/dist/index.js +36 -0
- package/dist/logging.d.ts +24 -0
- package/dist/logging.js +246 -0
- package/dist/remoting/acl.d.ts +16 -0
- package/dist/remoting/acl.js +39 -0
- package/dist/remoting/admin_body.d.ts +257 -0
- package/dist/remoting/admin_body.js +669 -0
- package/dist/remoting/bodies.d.ts +475 -0
- package/dist/remoting/bodies.js +1131 -0
- package/dist/remoting/client.d.ts +73 -0
- package/dist/remoting/client.js +591 -0
- package/dist/remoting/codes.d.ts +296 -0
- package/dist/remoting/codes.js +301 -0
- package/dist/remoting/exception.d.ts +45 -0
- package/dist/remoting/exception.js +58 -0
- package/dist/remoting/extra_info.d.ts +61 -0
- package/dist/remoting/extra_info.js +220 -0
- package/dist/remoting/headers.d.ts +758 -0
- package/dist/remoting/headers.js +1307 -0
- package/dist/remoting/heartbeat.d.ts +91 -0
- package/dist/remoting/heartbeat.js +227 -0
- package/dist/remoting/namespace.d.ts +14 -0
- package/dist/remoting/namespace.js +85 -0
- package/dist/remoting/pop_bodies.d.ts +58 -0
- package/dist/remoting/pop_bodies.js +214 -0
- package/dist/remoting/remotingCommand.d.ts +39 -0
- package/dist/remoting/remotingCommand.js +225 -0
- package/dist/remoting/route.d.ts +61 -0
- package/dist/remoting/route.js +288 -0
- package/dist/remoting/rpc_hooks.d.ts +31 -0
- package/dist/remoting/rpc_hooks.js +73 -0
- package/dist/remoting/serialize.d.ts +33 -0
- package/dist/remoting/serialize.js +372 -0
- package/dist/remoting/socks_proxy.d.ts +29 -0
- package/dist/remoting/socks_proxy.js +379 -0
- package/dist/remoting/static_topic.d.ts +49 -0
- package/dist/remoting/static_topic.js +244 -0
- package/dist/remoting/subscription.d.ts +65 -0
- package/dist/remoting/subscription.js +172 -0
- package/package.json +38 -4
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { MessageQueue } from '../common/message.js';
|
|
2
|
+
import { MessageExt } from '../common/message.js';
|
|
3
|
+
export declare const PullStatus: {
|
|
4
|
+
FOUND: number;
|
|
5
|
+
NO_NEW_MSG: number;
|
|
6
|
+
NO_MATCHED_MSG: number;
|
|
7
|
+
OFFSET_ILLEGAL: number;
|
|
8
|
+
fromCode(code: number): number;
|
|
9
|
+
};
|
|
10
|
+
export declare class PullResult {
|
|
11
|
+
status: number;
|
|
12
|
+
nextBeginOffset: number;
|
|
13
|
+
minOffset: number;
|
|
14
|
+
maxOffset: number;
|
|
15
|
+
msgFoundList: MessageExt[] | null;
|
|
16
|
+
suggestWhichBrokerId: number;
|
|
17
|
+
constructor(status: number, nextBeginOffset: number, minOffset: number, maxOffset: number, msgFoundList: MessageExt[] | null, suggestWhichBrokerId?: number);
|
|
18
|
+
getStatus(): number;
|
|
19
|
+
setStatus(s: number): void;
|
|
20
|
+
getNextBeginOffset(): number;
|
|
21
|
+
setNextBeginOffset(o: number): void;
|
|
22
|
+
getMinOffset(): number;
|
|
23
|
+
setMinOffset(o: number): void;
|
|
24
|
+
getMaxOffset(): number;
|
|
25
|
+
setMaxOffset(o: number): void;
|
|
26
|
+
getMsgFoundList(): MessageExt[] | null;
|
|
27
|
+
setMsgFoundList(l: MessageExt[] | null): void;
|
|
28
|
+
getSuggestWhichBrokerId(): number;
|
|
29
|
+
setSuggestWhichBrokerId(id: number): void;
|
|
30
|
+
}
|
|
31
|
+
export declare const ConsumeConcurrentlyStatus: {
|
|
32
|
+
CONSUME_SUCCESS: number;
|
|
33
|
+
RECONSUME_LATER: number;
|
|
34
|
+
};
|
|
35
|
+
export declare const ConsumeOrderlyStatus: {
|
|
36
|
+
SUCCESS: number;
|
|
37
|
+
ROLLBACK: number;
|
|
38
|
+
COMMIT: number;
|
|
39
|
+
SUSPEND_CURRENT_QUEUE_A_MOMENT: number;
|
|
40
|
+
};
|
|
41
|
+
export declare const consumeStatusName: {
|
|
42
|
+
[ConsumeConcurrentlyStatus.CONSUME_SUCCESS]: string;
|
|
43
|
+
[ConsumeConcurrentlyStatus.RECONSUME_LATER]: string;
|
|
44
|
+
[ConsumeOrderlyStatus.SUCCESS]: string;
|
|
45
|
+
[ConsumeOrderlyStatus.ROLLBACK]: string;
|
|
46
|
+
[ConsumeOrderlyStatus.COMMIT]: string;
|
|
47
|
+
[ConsumeOrderlyStatus.SUSPEND_CURRENT_QUEUE_A_MOMENT]: string;
|
|
48
|
+
};
|
|
49
|
+
export declare class ConsumeConcurrentlyContext {
|
|
50
|
+
messageQueue: MessageQueue;
|
|
51
|
+
delayLevelWhenNextConsume: number;
|
|
52
|
+
ackIndex: number;
|
|
53
|
+
constructor(messageQueue: MessageQueue, delayLevelWhenNextConsume?: number);
|
|
54
|
+
getMessageQueue(): MessageQueue;
|
|
55
|
+
setMessageQueue(mq: MessageQueue): void;
|
|
56
|
+
getDelayLevelWhenNextConsume(): number;
|
|
57
|
+
setDelayLevelWhenNextConsume(d: number): void;
|
|
58
|
+
getAckIndex(): number;
|
|
59
|
+
setAckIndex(i: number): void;
|
|
60
|
+
}
|
|
61
|
+
export declare class ConsumeOrderlyContext {
|
|
62
|
+
messageQueue: MessageQueue;
|
|
63
|
+
autoCommit: boolean;
|
|
64
|
+
suspendCurrentQueueTimeMillis: number;
|
|
65
|
+
constructor(messageQueue: MessageQueue, autoCommit?: boolean);
|
|
66
|
+
getMessageQueue(): MessageQueue;
|
|
67
|
+
setMessageQueue(mq: MessageQueue): void;
|
|
68
|
+
isAutoCommit(): boolean;
|
|
69
|
+
setAutoCommit(a: boolean): void;
|
|
70
|
+
getSuspendCurrentQueueTimeMillis(): number;
|
|
71
|
+
setSuspendCurrentQueueTimeMillis(t: number): void;
|
|
72
|
+
}
|
|
73
|
+
export declare class MessageSelector {
|
|
74
|
+
type: string;
|
|
75
|
+
expression: string;
|
|
76
|
+
constructor(type: string, expression: string);
|
|
77
|
+
static TAG(expression: string): MessageSelector;
|
|
78
|
+
static SQL92(expression: string): MessageSelector;
|
|
79
|
+
getType(): string;
|
|
80
|
+
getExpression(): string;
|
|
81
|
+
}
|
|
82
|
+
export declare abstract class MessageQueueListener {
|
|
83
|
+
messageQueueChanged(topic: string, mqAll: MessageQueue[], mqDivided: MessageQueue[]): void;
|
|
84
|
+
}
|
|
85
|
+
export declare abstract class MessageListenerConcurrently {
|
|
86
|
+
consumeMessage(msgs: MessageExt[], context: ConsumeConcurrentlyContext): number;
|
|
87
|
+
}
|
|
88
|
+
export declare abstract class MessageListenerOrderly {
|
|
89
|
+
consumeMessage(msgs: MessageExt[], context: ConsumeOrderlyContext): number;
|
|
90
|
+
}
|
|
91
|
+
export declare abstract class MessageListener {
|
|
92
|
+
consumeMessage(msgs: MessageExt[], context: any): number;
|
|
93
|
+
}
|
|
94
|
+
declare const _default: {
|
|
95
|
+
PullStatus: {
|
|
96
|
+
FOUND: number;
|
|
97
|
+
NO_NEW_MSG: number;
|
|
98
|
+
NO_MATCHED_MSG: number;
|
|
99
|
+
OFFSET_ILLEGAL: number;
|
|
100
|
+
fromCode(code: number): number;
|
|
101
|
+
};
|
|
102
|
+
PullResult: typeof PullResult;
|
|
103
|
+
ConsumeConcurrentlyStatus: {
|
|
104
|
+
CONSUME_SUCCESS: number;
|
|
105
|
+
RECONSUME_LATER: number;
|
|
106
|
+
};
|
|
107
|
+
ConsumeOrderlyStatus: {
|
|
108
|
+
SUCCESS: number;
|
|
109
|
+
ROLLBACK: number;
|
|
110
|
+
COMMIT: number;
|
|
111
|
+
SUSPEND_CURRENT_QUEUE_A_MOMENT: number;
|
|
112
|
+
};
|
|
113
|
+
consumeStatusName: {
|
|
114
|
+
[ConsumeConcurrentlyStatus.CONSUME_SUCCESS]: string;
|
|
115
|
+
[ConsumeConcurrentlyStatus.RECONSUME_LATER]: string;
|
|
116
|
+
[ConsumeOrderlyStatus.SUCCESS]: string;
|
|
117
|
+
[ConsumeOrderlyStatus.ROLLBACK]: string;
|
|
118
|
+
[ConsumeOrderlyStatus.COMMIT]: string;
|
|
119
|
+
[ConsumeOrderlyStatus.SUSPEND_CURRENT_QUEUE_A_MOMENT]: string;
|
|
120
|
+
};
|
|
121
|
+
ConsumeConcurrentlyContext: typeof ConsumeConcurrentlyContext;
|
|
122
|
+
ConsumeOrderlyContext: typeof ConsumeOrderlyContext;
|
|
123
|
+
MessageSelector: typeof MessageSelector;
|
|
124
|
+
MessageQueueListener: typeof MessageQueueListener;
|
|
125
|
+
MessageListenerConcurrently: typeof MessageListenerConcurrently;
|
|
126
|
+
MessageListenerOrderly: typeof MessageListenerOrderly;
|
|
127
|
+
MessageListener: typeof MessageListener;
|
|
128
|
+
};
|
|
129
|
+
export default _default;
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
export const PullStatus = {
|
|
2
|
+
FOUND: 0,
|
|
3
|
+
NO_NEW_MSG: 1,
|
|
4
|
+
NO_MATCHED_MSG: 2,
|
|
5
|
+
OFFSET_ILLEGAL: 3,
|
|
6
|
+
fromCode(code) {
|
|
7
|
+
return code;
|
|
8
|
+
},
|
|
9
|
+
};
|
|
10
|
+
export class PullResult {
|
|
11
|
+
status;
|
|
12
|
+
nextBeginOffset;
|
|
13
|
+
minOffset;
|
|
14
|
+
maxOffset;
|
|
15
|
+
msgFoundList;
|
|
16
|
+
suggestWhichBrokerId;
|
|
17
|
+
constructor(status, nextBeginOffset, minOffset, maxOffset, msgFoundList, suggestWhichBrokerId = 0) {
|
|
18
|
+
this.status = status;
|
|
19
|
+
this.nextBeginOffset = nextBeginOffset;
|
|
20
|
+
this.minOffset = minOffset;
|
|
21
|
+
this.maxOffset = maxOffset;
|
|
22
|
+
this.msgFoundList = msgFoundList;
|
|
23
|
+
this.suggestWhichBrokerId = suggestWhichBrokerId;
|
|
24
|
+
}
|
|
25
|
+
getStatus() { return this.status; }
|
|
26
|
+
setStatus(s) { this.status = s; }
|
|
27
|
+
getNextBeginOffset() { return this.nextBeginOffset; }
|
|
28
|
+
setNextBeginOffset(o) { this.nextBeginOffset = o; }
|
|
29
|
+
getMinOffset() { return this.minOffset; }
|
|
30
|
+
setMinOffset(o) { this.minOffset = o; }
|
|
31
|
+
getMaxOffset() { return this.maxOffset; }
|
|
32
|
+
setMaxOffset(o) { this.maxOffset = o; }
|
|
33
|
+
getMsgFoundList() { return this.msgFoundList; }
|
|
34
|
+
setMsgFoundList(l) { this.msgFoundList = l; }
|
|
35
|
+
getSuggestWhichBrokerId() { return this.suggestWhichBrokerId; }
|
|
36
|
+
setSuggestWhichBrokerId(id) { this.suggestWhichBrokerId = id; }
|
|
37
|
+
}
|
|
38
|
+
export const ConsumeConcurrentlyStatus = {
|
|
39
|
+
CONSUME_SUCCESS: 0,
|
|
40
|
+
RECONSUME_LATER: 1,
|
|
41
|
+
};
|
|
42
|
+
export const ConsumeOrderlyStatus = {
|
|
43
|
+
SUCCESS: 0,
|
|
44
|
+
ROLLBACK: 1,
|
|
45
|
+
COMMIT: 2,
|
|
46
|
+
SUSPEND_CURRENT_QUEUE_A_MOMENT: 3,
|
|
47
|
+
};
|
|
48
|
+
export const consumeStatusName = {
|
|
49
|
+
[ConsumeConcurrentlyStatus.CONSUME_SUCCESS]: 'CONSUME_SUCCESS',
|
|
50
|
+
[ConsumeConcurrentlyStatus.RECONSUME_LATER]: 'RECONSUME_LATER',
|
|
51
|
+
[ConsumeOrderlyStatus.SUCCESS]: 'SUCCESS',
|
|
52
|
+
[ConsumeOrderlyStatus.ROLLBACK]: 'ROLLBACK',
|
|
53
|
+
[ConsumeOrderlyStatus.COMMIT]: 'COMMIT',
|
|
54
|
+
[ConsumeOrderlyStatus.SUSPEND_CURRENT_QUEUE_A_MOMENT]: 'SUSPEND_CURRENT_QUEUE_A_MOMENT',
|
|
55
|
+
};
|
|
56
|
+
export class ConsumeConcurrentlyContext {
|
|
57
|
+
messageQueue;
|
|
58
|
+
delayLevelWhenNextConsume;
|
|
59
|
+
ackIndex;
|
|
60
|
+
constructor(messageQueue, delayLevelWhenNextConsume = 0) {
|
|
61
|
+
this.messageQueue = messageQueue;
|
|
62
|
+
this.delayLevelWhenNextConsume = delayLevelWhenNextConsume;
|
|
63
|
+
this.ackIndex = Math.pow(2, 31) - 1;
|
|
64
|
+
}
|
|
65
|
+
getMessageQueue() { return this.messageQueue; }
|
|
66
|
+
setMessageQueue(mq) { this.messageQueue = mq; }
|
|
67
|
+
getDelayLevelWhenNextConsume() { return this.delayLevelWhenNextConsume; }
|
|
68
|
+
setDelayLevelWhenNextConsume(d) { this.delayLevelWhenNextConsume = d; }
|
|
69
|
+
getAckIndex() { return this.ackIndex; }
|
|
70
|
+
setAckIndex(i) { this.ackIndex = i; }
|
|
71
|
+
}
|
|
72
|
+
export class ConsumeOrderlyContext {
|
|
73
|
+
messageQueue;
|
|
74
|
+
autoCommit;
|
|
75
|
+
suspendCurrentQueueTimeMillis;
|
|
76
|
+
constructor(messageQueue, autoCommit = true) {
|
|
77
|
+
this.messageQueue = messageQueue;
|
|
78
|
+
this.autoCommit = autoCommit;
|
|
79
|
+
this.suspendCurrentQueueTimeMillis = -1;
|
|
80
|
+
}
|
|
81
|
+
getMessageQueue() { return this.messageQueue; }
|
|
82
|
+
setMessageQueue(mq) { this.messageQueue = mq; }
|
|
83
|
+
isAutoCommit() { return this.autoCommit; }
|
|
84
|
+
setAutoCommit(a) { this.autoCommit = a; }
|
|
85
|
+
getSuspendCurrentQueueTimeMillis() { return this.suspendCurrentQueueTimeMillis; }
|
|
86
|
+
setSuspendCurrentQueueTimeMillis(t) { this.suspendCurrentQueueTimeMillis = t; }
|
|
87
|
+
}
|
|
88
|
+
export class MessageSelector {
|
|
89
|
+
type;
|
|
90
|
+
expression;
|
|
91
|
+
constructor(type, expression) {
|
|
92
|
+
this.type = type;
|
|
93
|
+
this.expression = expression;
|
|
94
|
+
}
|
|
95
|
+
static TAG(expression) {
|
|
96
|
+
return new MessageSelector('TAG', expression);
|
|
97
|
+
}
|
|
98
|
+
static SQL92(expression) {
|
|
99
|
+
return new MessageSelector('SQL92', expression);
|
|
100
|
+
}
|
|
101
|
+
getType() { return this.type; }
|
|
102
|
+
getExpression() { return this.expression; }
|
|
103
|
+
}
|
|
104
|
+
export class MessageQueueListener {
|
|
105
|
+
// Subclasses override.
|
|
106
|
+
messageQueueChanged(topic, mqAll, mqDivided) {
|
|
107
|
+
void topic;
|
|
108
|
+
void mqAll;
|
|
109
|
+
void mqDivided;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
// MessageListener interfaces (callback shapes invoked by the consumer agent).
|
|
113
|
+
export class MessageListenerConcurrently {
|
|
114
|
+
consumeMessage(msgs, context) {
|
|
115
|
+
void msgs;
|
|
116
|
+
void context;
|
|
117
|
+
return ConsumeConcurrentlyStatus.CONSUME_SUCCESS;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
export class MessageListenerOrderly {
|
|
121
|
+
consumeMessage(msgs, context) {
|
|
122
|
+
void msgs;
|
|
123
|
+
void context;
|
|
124
|
+
return ConsumeOrderlyStatus.SUCCESS;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
export class MessageListener {
|
|
128
|
+
consumeMessage(msgs, context) {
|
|
129
|
+
void msgs;
|
|
130
|
+
void context;
|
|
131
|
+
return ConsumeConcurrentlyStatus.CONSUME_SUCCESS;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
export default {
|
|
135
|
+
PullStatus, PullResult, ConsumeConcurrentlyStatus, ConsumeOrderlyStatus, consumeStatusName,
|
|
136
|
+
ConsumeConcurrentlyContext, ConsumeOrderlyContext, MessageSelector, MessageQueueListener,
|
|
137
|
+
MessageListenerConcurrently, MessageListenerOrderly, MessageListener,
|
|
138
|
+
};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { ConsumeStatus } from '../remoting/bodies.js';
|
|
2
|
+
export declare const SAMPLING_INTERVAL_SECONDS = 10;
|
|
3
|
+
export declare const HOUR_SAMPLING_INTERVAL_SECONDS = 600;
|
|
4
|
+
export declare const DAY_SAMPLING_INTERVAL_SECONDS = 3600;
|
|
5
|
+
export declare class StatsSnapshot {
|
|
6
|
+
sum: number;
|
|
7
|
+
tps: number;
|
|
8
|
+
avgpt: number;
|
|
9
|
+
times: number;
|
|
10
|
+
}
|
|
11
|
+
interface SamplePoint {
|
|
12
|
+
ts: number;
|
|
13
|
+
value: number;
|
|
14
|
+
times: number;
|
|
15
|
+
}
|
|
16
|
+
export declare function computeStatsData(csList: SamplePoint[]): StatsSnapshot;
|
|
17
|
+
export declare class StatsItem {
|
|
18
|
+
statsName: string;
|
|
19
|
+
statsKey: string;
|
|
20
|
+
private _value;
|
|
21
|
+
private _times;
|
|
22
|
+
private _minute;
|
|
23
|
+
private _hour;
|
|
24
|
+
private _day;
|
|
25
|
+
constructor(statsName: string, statsKey: string);
|
|
26
|
+
addValue(incValue: number, incTimes: number): void;
|
|
27
|
+
get value(): number;
|
|
28
|
+
get times(): number;
|
|
29
|
+
private _samplePoint;
|
|
30
|
+
sample(): void;
|
|
31
|
+
sampleHour(): void;
|
|
32
|
+
sampleDay(): void;
|
|
33
|
+
getStatsDataInMinute(): StatsSnapshot;
|
|
34
|
+
getStatsDataInHour(): StatsSnapshot;
|
|
35
|
+
getStatsDataInDay(): StatsSnapshot;
|
|
36
|
+
}
|
|
37
|
+
export declare class StatsItemSet {
|
|
38
|
+
statsName: string;
|
|
39
|
+
private _items;
|
|
40
|
+
constructor(statsName: string);
|
|
41
|
+
getAndCreate(key: string): StatsItem;
|
|
42
|
+
find(key: string): StatsItem | null;
|
|
43
|
+
addValue(key: string, incValue: number, incTimes: number): void;
|
|
44
|
+
keys(): string[];
|
|
45
|
+
sampleAll(): void;
|
|
46
|
+
sampleHourAll(): void;
|
|
47
|
+
sampleDayAll(): void;
|
|
48
|
+
}
|
|
49
|
+
export declare class ConsumerStatsManager {
|
|
50
|
+
topicAndGroupPullRT: StatsItemSet;
|
|
51
|
+
topicAndGroupPullTPS: StatsItemSet;
|
|
52
|
+
topicAndGroupConsumeRT: StatsItemSet;
|
|
53
|
+
topicAndGroupConsumeOKTPS: StatsItemSet;
|
|
54
|
+
topicAndGroupConsumeFailedTPS: StatsItemSet;
|
|
55
|
+
private _sets;
|
|
56
|
+
private _timer;
|
|
57
|
+
private _rounds;
|
|
58
|
+
constructor();
|
|
59
|
+
start(): void;
|
|
60
|
+
shutdown(): void;
|
|
61
|
+
private static _key;
|
|
62
|
+
incPullRT(group: string, topic: string, rt: number): void;
|
|
63
|
+
incPullTPS(group: string, topic: string, msgs: number): void;
|
|
64
|
+
incConsumeRT(group: string, topic: string, rt: number): void;
|
|
65
|
+
incConsumeOKTPS(group: string, topic: string, msgs: number): void;
|
|
66
|
+
incConsumeFailedTPS(group: string, topic: string, msgs: number): void;
|
|
67
|
+
consumeStatus(group: string, topic: string): ConsumeStatus;
|
|
68
|
+
}
|
|
69
|
+
export {};
|
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
// -*- coding: utf-8 -*-
|
|
2
|
+
// Consumer-side stats (ConsumerStatsManager + StatsItem/StatsItemSet/StatsSnapshot).
|
|
3
|
+
//
|
|
4
|
+
// The real model (NOT what the "one bucket per minute" name suggests):
|
|
5
|
+
//
|
|
6
|
+
// * A StatsItem maintains CUMULATIVE value/times (monotonically increasing)
|
|
7
|
+
// with three sample-snapshot chains attached: minute (one cumulative point
|
|
8
|
+
// every 10s, max 7), hour (every 10 minutes, max 7) and day (every hour,
|
|
9
|
+
// max 25);
|
|
10
|
+
// * Snapshots are computed by computeStatsData:
|
|
11
|
+
// sum = last.value - first.value (window difference)
|
|
12
|
+
// tps = sum * 1000.0 / (last.ts - first.ts) (per second)
|
|
13
|
+
// timesDiff = last.times - first.times
|
|
14
|
+
// avgpt = timesDiff > 0 ? sum / timesDiff : 0 ("per call") — on RT
|
|
15
|
+
// metrics this is the average latency (ms)
|
|
16
|
+
// * TPS counters go through addValue(key, msgs, 1): value accumulates the
|
|
17
|
+
// message count, times accumulates the call count →
|
|
18
|
+
// tps = calls (or messages) per second;
|
|
19
|
+
// * RT counters go through addRTValue(key, rt, 1): value accumulates elapsed
|
|
20
|
+
// ms, times accumulates the call count → avgpt = average latency;
|
|
21
|
+
// * consumeStatus(group, topic) reads the MINUTE snapshot for everything
|
|
22
|
+
// except consumeFailedMsgs; consumeFailedMsgs takes the failed set's
|
|
23
|
+
// HOUR-window sum — a DELIBERATE cross-window choice, do not "fix" it in
|
|
24
|
+
// passing.
|
|
25
|
+
//
|
|
26
|
+
// Implementation detail (semantics identical): originally each StatsItem had
|
|
27
|
+
// its own 10s/10min sampler; here ONE manager-level sampling timer walks every
|
|
28
|
+
// set uniformly — the sampling precision is unchanged (10s) while dozens of
|
|
29
|
+
// timers are saved.
|
|
30
|
+
import { ConsumeStatus } from "../remoting/bodies.js";
|
|
31
|
+
import { getLogger } from "../logging.js";
|
|
32
|
+
const logger = getLogger('consumer-stats');
|
|
33
|
+
// Sampling interval: minute chain takes a point every 10s, hour chain every
|
|
34
|
+
// 10min, day chain every 1h.
|
|
35
|
+
export const SAMPLING_INTERVAL_SECONDS = 10.0;
|
|
36
|
+
export const HOUR_SAMPLING_INTERVAL_SECONDS = 600.0;
|
|
37
|
+
export const DAY_SAMPLING_INTERVAL_SECONDS = 3600.0;
|
|
38
|
+
// Snapshot-chain length caps: the minute chain spans ~1 minute (7 x 10s), the
|
|
39
|
+
// hour chain ~1 hour (7 x 10min), and the day chain ~1 day (25 x 1h).
|
|
40
|
+
const MINUTE_LIST_MAX = 7;
|
|
41
|
+
const HOUR_LIST_MAX = 7;
|
|
42
|
+
const DAY_LIST_MAX = 25;
|
|
43
|
+
export class StatsSnapshot {
|
|
44
|
+
sum = 0;
|
|
45
|
+
tps = 0.0;
|
|
46
|
+
avgpt = 0.0;
|
|
47
|
+
times = 0;
|
|
48
|
+
}
|
|
49
|
+
// Snapshot computation: window first-vs-last difference -> sum / tps / timesDiff / avgpt.
|
|
50
|
+
export function computeStatsData(csList) {
|
|
51
|
+
const ss = new StatsSnapshot();
|
|
52
|
+
if (csList.length === 0)
|
|
53
|
+
return ss;
|
|
54
|
+
const first = csList[0];
|
|
55
|
+
const last = csList[csList.length - 1];
|
|
56
|
+
ss.sum = last.value - first.value;
|
|
57
|
+
const spanMs = last.ts - first.ts;
|
|
58
|
+
if (spanMs > 0)
|
|
59
|
+
ss.tps = (ss.sum * 1000.0) / spanMs;
|
|
60
|
+
const timesDiff = last.times - first.times;
|
|
61
|
+
ss.times = timesDiff;
|
|
62
|
+
if (timesDiff > 0)
|
|
63
|
+
ss.avgpt = (ss.sum * 1.0) / timesDiff;
|
|
64
|
+
return ss;
|
|
65
|
+
}
|
|
66
|
+
export class StatsItem {
|
|
67
|
+
statsName;
|
|
68
|
+
statsKey;
|
|
69
|
+
_value = 0;
|
|
70
|
+
_times = 0;
|
|
71
|
+
// Entries = (timestamp_ms, cumulative value, cumulative times).
|
|
72
|
+
_minute = [];
|
|
73
|
+
_hour = [];
|
|
74
|
+
_day = [];
|
|
75
|
+
constructor(statsName, statsKey) {
|
|
76
|
+
this.statsName = statsName;
|
|
77
|
+
this.statsKey = statsKey;
|
|
78
|
+
}
|
|
79
|
+
addValue(incValue, incTimes) {
|
|
80
|
+
this._value += incValue;
|
|
81
|
+
this._times += incTimes;
|
|
82
|
+
}
|
|
83
|
+
get value() { return this._value; }
|
|
84
|
+
get times() { return this._times; }
|
|
85
|
+
_samplePoint() {
|
|
86
|
+
return { ts: Date.now(), value: this._value, times: this._times };
|
|
87
|
+
}
|
|
88
|
+
// Append a minute-level sample point (every 10s from the sampler timer). An
|
|
89
|
+
// empty chain is seeded with one zero point one period back, so the first
|
|
90
|
+
// window has a real span instead of a single point.
|
|
91
|
+
sample() {
|
|
92
|
+
if (this._minute.length === 0) {
|
|
93
|
+
this._minute.push({ ts: Date.now() - SAMPLING_INTERVAL_SECONDS * 1000, value: 0, times: 0 });
|
|
94
|
+
}
|
|
95
|
+
this._minute.push(this._samplePoint());
|
|
96
|
+
while (this._minute.length > MINUTE_LIST_MAX)
|
|
97
|
+
this._minute.shift();
|
|
98
|
+
}
|
|
99
|
+
// Append an hour-level sample point (every 10 minutes from the sampler).
|
|
100
|
+
sampleHour() {
|
|
101
|
+
if (this._hour.length === 0) {
|
|
102
|
+
this._hour.push({ ts: Date.now() - HOUR_SAMPLING_INTERVAL_SECONDS * 1000, value: 0, times: 0 });
|
|
103
|
+
}
|
|
104
|
+
this._hour.push(this._samplePoint());
|
|
105
|
+
while (this._hour.length > HOUR_LIST_MAX)
|
|
106
|
+
this._hour.shift();
|
|
107
|
+
}
|
|
108
|
+
// Append a day-level sample point (every hour from the sampler).
|
|
109
|
+
sampleDay() {
|
|
110
|
+
if (this._day.length === 0) {
|
|
111
|
+
this._day.push({ ts: Date.now() - DAY_SAMPLING_INTERVAL_SECONDS * 1000, value: 0, times: 0 });
|
|
112
|
+
}
|
|
113
|
+
this._day.push(this._samplePoint());
|
|
114
|
+
while (this._day.length > DAY_LIST_MAX)
|
|
115
|
+
this._day.shift();
|
|
116
|
+
}
|
|
117
|
+
getStatsDataInMinute() {
|
|
118
|
+
return computeStatsData(this._minute);
|
|
119
|
+
}
|
|
120
|
+
getStatsDataInHour() {
|
|
121
|
+
return computeStatsData(this._hour);
|
|
122
|
+
}
|
|
123
|
+
getStatsDataInDay() {
|
|
124
|
+
return computeStatsData(this._day);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
export class StatsItemSet {
|
|
128
|
+
statsName;
|
|
129
|
+
_items = new Map();
|
|
130
|
+
constructor(statsName) {
|
|
131
|
+
this.statsName = statsName;
|
|
132
|
+
}
|
|
133
|
+
getAndCreate(key) {
|
|
134
|
+
let item = this._items.get(key);
|
|
135
|
+
if (item == null) {
|
|
136
|
+
item = new StatsItem(this.statsName, key);
|
|
137
|
+
this._items.set(key, item);
|
|
138
|
+
}
|
|
139
|
+
return item;
|
|
140
|
+
}
|
|
141
|
+
find(key) {
|
|
142
|
+
return this._items.get(key) != null ? this._items.get(key) : null;
|
|
143
|
+
}
|
|
144
|
+
addValue(key, incValue, incTimes) {
|
|
145
|
+
this.getAndCreate(key).addValue(incValue, incTimes);
|
|
146
|
+
}
|
|
147
|
+
keys() {
|
|
148
|
+
return Array.from(this._items.keys());
|
|
149
|
+
}
|
|
150
|
+
sampleAll() {
|
|
151
|
+
for (const key of this.keys())
|
|
152
|
+
this.find(key).sample();
|
|
153
|
+
}
|
|
154
|
+
sampleHourAll() {
|
|
155
|
+
for (const key of this.keys())
|
|
156
|
+
this.find(key).sampleHour();
|
|
157
|
+
}
|
|
158
|
+
sampleDayAll() {
|
|
159
|
+
for (const key of this.keys())
|
|
160
|
+
this.find(key).sampleDay();
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
export class ConsumerStatsManager {
|
|
164
|
+
// Five StatsItemSets; the key is ALWAYS `topic@group`.
|
|
165
|
+
topicAndGroupPullRT = new StatsItemSet('PULL_RT');
|
|
166
|
+
topicAndGroupPullTPS = new StatsItemSet('PULL_TPS');
|
|
167
|
+
topicAndGroupConsumeRT = new StatsItemSet('CONSUME_RT');
|
|
168
|
+
topicAndGroupConsumeOKTPS = new StatsItemSet('CONSUME_OK_TPS');
|
|
169
|
+
topicAndGroupConsumeFailedTPS = new StatsItemSet('CONSUME_FAILED_TPS');
|
|
170
|
+
_sets;
|
|
171
|
+
_timer = null;
|
|
172
|
+
_rounds = 0;
|
|
173
|
+
constructor() {
|
|
174
|
+
this._sets = [
|
|
175
|
+
this.topicAndGroupPullRT,
|
|
176
|
+
this.topicAndGroupPullTPS,
|
|
177
|
+
this.topicAndGroupConsumeRT,
|
|
178
|
+
this.topicAndGroupConsumeOKTPS,
|
|
179
|
+
this.topicAndGroupConsumeFailedTPS,
|
|
180
|
+
];
|
|
181
|
+
}
|
|
182
|
+
// start itself only sets up the timer; the sampling precision stays 10s.
|
|
183
|
+
start() {
|
|
184
|
+
if (this._timer != null)
|
|
185
|
+
return;
|
|
186
|
+
this._timer = setInterval(() => {
|
|
187
|
+
try {
|
|
188
|
+
this._rounds += 1;
|
|
189
|
+
for (const s of this._sets)
|
|
190
|
+
s.sampleAll();
|
|
191
|
+
if (this._rounds % 60 === 0) { // 60 x 10s = 10 minutes
|
|
192
|
+
for (const s of this._sets)
|
|
193
|
+
s.sampleHourAll();
|
|
194
|
+
}
|
|
195
|
+
if (this._rounds % 360 === 0) { // 360 x 10s = 1 hour
|
|
196
|
+
for (const s of this._sets)
|
|
197
|
+
s.sampleDayAll();
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
catch (e) {
|
|
201
|
+
logger.warn(`stats sample failed: ${e.message}`);
|
|
202
|
+
}
|
|
203
|
+
}, SAMPLING_INTERVAL_SECONDS * 1000);
|
|
204
|
+
// Never keep the process alive for a stats timer.
|
|
205
|
+
if (typeof this._timer.unref === 'function')
|
|
206
|
+
this._timer.unref();
|
|
207
|
+
}
|
|
208
|
+
shutdown() {
|
|
209
|
+
if (this._timer != null) {
|
|
210
|
+
clearInterval(this._timer);
|
|
211
|
+
this._timer = null;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
static _key(topic, group) {
|
|
215
|
+
return `${topic}@${group}`;
|
|
216
|
+
}
|
|
217
|
+
// ---- recording interface: incPullRT / incPullTPS / incConsumeRT / incConsumeOKTPS / incConsumeFailedTPS ----
|
|
218
|
+
incPullRT(group, topic, rt) {
|
|
219
|
+
this.topicAndGroupPullRT.addValue(ConsumerStatsManager._key(topic, group), rt, 1);
|
|
220
|
+
}
|
|
221
|
+
incPullTPS(group, topic, msgs) {
|
|
222
|
+
this.topicAndGroupPullTPS.addValue(ConsumerStatsManager._key(topic, group), msgs, 1);
|
|
223
|
+
}
|
|
224
|
+
incConsumeRT(group, topic, rt) {
|
|
225
|
+
this.topicAndGroupConsumeRT.addValue(ConsumerStatsManager._key(topic, group), rt, 1);
|
|
226
|
+
}
|
|
227
|
+
incConsumeOKTPS(group, topic, msgs) {
|
|
228
|
+
this.topicAndGroupConsumeOKTPS.addValue(ConsumerStatsManager._key(topic, group), msgs, 1);
|
|
229
|
+
}
|
|
230
|
+
incConsumeFailedTPS(group, topic, msgs) {
|
|
231
|
+
this.topicAndGroupConsumeFailedTPS.addValue(ConsumerStatsManager._key(topic, group), msgs, 1);
|
|
232
|
+
}
|
|
233
|
+
// consumeStatus: everything except consumeFailedMsgs uses the MINUTE
|
|
234
|
+
// snapshot; consumeFailedMsgs takes the failed set's HOUR-window sum — the
|
|
235
|
+
// cross-window is deliberate, do not change it unilaterally.
|
|
236
|
+
consumeStatus(group, topic) {
|
|
237
|
+
const cs = new ConsumeStatus();
|
|
238
|
+
const key = ConsumerStatsManager._key(topic, group);
|
|
239
|
+
const pullRT = this.topicAndGroupPullRT.find(key);
|
|
240
|
+
if (pullRT != null)
|
|
241
|
+
cs.pullRT = pullRT.getStatsDataInMinute().avgpt;
|
|
242
|
+
const pullTPS = this.topicAndGroupPullTPS.find(key);
|
|
243
|
+
if (pullTPS != null)
|
|
244
|
+
cs.pullTPS = pullTPS.getStatsDataInMinute().tps;
|
|
245
|
+
const consumeRT = this.topicAndGroupConsumeRT.find(key);
|
|
246
|
+
if (consumeRT != null)
|
|
247
|
+
cs.consumeRT = consumeRT.getStatsDataInMinute().avgpt;
|
|
248
|
+
const okTPS = this.topicAndGroupConsumeOKTPS.find(key);
|
|
249
|
+
if (okTPS != null)
|
|
250
|
+
cs.consumeOKTPS = okTPS.getStatsDataInMinute().tps;
|
|
251
|
+
const failedTPS = this.topicAndGroupConsumeFailedTPS.find(key);
|
|
252
|
+
if (failedTPS != null) {
|
|
253
|
+
cs.consumeFailedTPS = failedTPS.getStatsDataInMinute().tps;
|
|
254
|
+
cs.consumeFailedMsgs = failedTPS.getStatsDataInHour().sum;
|
|
255
|
+
}
|
|
256
|
+
return cs;
|
|
257
|
+
}
|
|
258
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { MQClientException, MQBrokerException, RemotingException, RemotingConnectException, RemotingSendRequestException, RemotingTimeoutException, RemotingCommandException, RemotingTooMuchRequestException, InterruptedException, RuntimeException } from '../remoting/exception.js';
|
|
2
|
+
export declare const ClientErrorCode: {
|
|
3
|
+
CONNECT_BROKER_EXCEPTION: number;
|
|
4
|
+
ACCESS_BROKER_TIMEOUT: number;
|
|
5
|
+
BROKER_NOT_EXIST_EXCEPTION: number;
|
|
6
|
+
NO_NAME_SERVER_EXCEPTION: number;
|
|
7
|
+
NOT_FOUND_TOPIC_EXCEPTION: number;
|
|
8
|
+
REQUEST_TIMEOUT_EXCEPTION: number;
|
|
9
|
+
CREATE_REPLY_MESSAGE_EXCEPTION: number;
|
|
10
|
+
SEND_REQUEST_WITH_FUTURE_EXCEPTION: number;
|
|
11
|
+
};
|
|
12
|
+
export declare class RequestTimeoutException extends RemotingTimeoutException {
|
|
13
|
+
constructor(addr: string, timeoutMillis: number);
|
|
14
|
+
}
|
|
15
|
+
export { MQClientException, MQBrokerException, RemotingException, RemotingConnectException, RemotingSendRequestException, RemotingTimeoutException, RemotingCommandException, RemotingTooMuchRequestException, InterruptedException, RuntimeException, };
|
|
16
|
+
declare const _default: {
|
|
17
|
+
ClientErrorCode: {
|
|
18
|
+
CONNECT_BROKER_EXCEPTION: number;
|
|
19
|
+
ACCESS_BROKER_TIMEOUT: number;
|
|
20
|
+
BROKER_NOT_EXIST_EXCEPTION: number;
|
|
21
|
+
NO_NAME_SERVER_EXCEPTION: number;
|
|
22
|
+
NOT_FOUND_TOPIC_EXCEPTION: number;
|
|
23
|
+
REQUEST_TIMEOUT_EXCEPTION: number;
|
|
24
|
+
CREATE_REPLY_MESSAGE_EXCEPTION: number;
|
|
25
|
+
SEND_REQUEST_WITH_FUTURE_EXCEPTION: number;
|
|
26
|
+
};
|
|
27
|
+
RequestTimeoutException: typeof RequestTimeoutException;
|
|
28
|
+
MQClientException: typeof MQClientException;
|
|
29
|
+
MQBrokerException: typeof MQBrokerException;
|
|
30
|
+
RemotingException: typeof RemotingException;
|
|
31
|
+
RemotingConnectException: typeof RemotingConnectException;
|
|
32
|
+
RemotingSendRequestException: typeof RemotingSendRequestException;
|
|
33
|
+
RemotingTimeoutException: typeof RemotingTimeoutException;
|
|
34
|
+
RemotingCommandException: typeof RemotingCommandException;
|
|
35
|
+
RemotingTooMuchRequestException: typeof RemotingTooMuchRequestException;
|
|
36
|
+
InterruptedException: typeof InterruptedException;
|
|
37
|
+
RuntimeException: typeof RuntimeException;
|
|
38
|
+
};
|
|
39
|
+
export default _default;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
// NOTE: the foundation remoting/exception.ts is the single source of truth for the exception
|
|
2
|
+
// classes; this module only adds the client-specific error codes
|
|
3
|
+
// and a thin RequestTimeoutException used by the request-reply path.
|
|
4
|
+
import { MQClientException, MQBrokerException, RemotingException, RemotingConnectException, RemotingSendRequestException, RemotingTimeoutException, RemotingCommandException, RemotingTooMuchRequestException, InterruptedException, RuntimeException, } from "../remoting/exception.js";
|
|
5
|
+
export const ClientErrorCode = {
|
|
6
|
+
CONNECT_BROKER_EXCEPTION: 10001,
|
|
7
|
+
ACCESS_BROKER_TIMEOUT: 10002,
|
|
8
|
+
BROKER_NOT_EXIST_EXCEPTION: 10003,
|
|
9
|
+
NO_NAME_SERVER_EXCEPTION: 10004,
|
|
10
|
+
NOT_FOUND_TOPIC_EXCEPTION: 10005,
|
|
11
|
+
REQUEST_TIMEOUT_EXCEPTION: 10006,
|
|
12
|
+
CREATE_REPLY_MESSAGE_EXCEPTION: 10007,
|
|
13
|
+
SEND_REQUEST_WITH_FUTURE_EXCEPTION: 10008,
|
|
14
|
+
};
|
|
15
|
+
// Convenience subclass used by the request-reply future path.
|
|
16
|
+
export class RequestTimeoutException extends RemotingTimeoutException {
|
|
17
|
+
constructor(addr, timeoutMillis) {
|
|
18
|
+
super(addr, timeoutMillis);
|
|
19
|
+
this.name = 'RequestTimeoutException';
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
export { MQClientException, MQBrokerException, RemotingException, RemotingConnectException, RemotingSendRequestException, RemotingTimeoutException, RemotingCommandException, RemotingTooMuchRequestException, InterruptedException, RuntimeException, };
|
|
23
|
+
export default {
|
|
24
|
+
ClientErrorCode,
|
|
25
|
+
RequestTimeoutException,
|
|
26
|
+
MQClientException,
|
|
27
|
+
MQBrokerException,
|
|
28
|
+
RemotingException,
|
|
29
|
+
RemotingConnectException,
|
|
30
|
+
RemotingSendRequestException,
|
|
31
|
+
RemotingTimeoutException,
|
|
32
|
+
RemotingCommandException,
|
|
33
|
+
RemotingTooMuchRequestException,
|
|
34
|
+
InterruptedException,
|
|
35
|
+
RuntimeException,
|
|
36
|
+
};
|