rocketmq-client-nodejs 1.0.7 → 1.1.0

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.
Files changed (164) hide show
  1. package/README.md +61 -0
  2. package/dist/client/BaseClient.d.ts +36 -1
  3. package/dist/client/BaseClient.js +176 -12
  4. package/dist/client/RpcClient.js +14 -2
  5. package/dist/client/RpcClientManager.d.ts +5 -0
  6. package/dist/client/RpcClientManager.js +25 -8
  7. package/dist/client/TelemetrySession.js +45 -10
  8. package/dist/consumer/ConsumeResult.d.ts +2 -2
  9. package/dist/consumer/ConsumeResult.js +6 -3
  10. package/dist/consumer/ConsumeService.d.ts +2 -1
  11. package/dist/consumer/ConsumeService.js +7 -3
  12. package/dist/consumer/ConsumeTask.d.ts +6 -1
  13. package/dist/consumer/ConsumeTask.js +36 -5
  14. package/dist/consumer/Consumer.d.ts +13 -5
  15. package/dist/consumer/Consumer.js +85 -24
  16. package/dist/consumer/FifoConsumeService.d.ts +2 -1
  17. package/dist/consumer/FifoConsumeService.js +3 -3
  18. package/dist/consumer/LiteFifoConsumeService.d.ts +2 -1
  19. package/dist/consumer/LiteFifoConsumeService.js +3 -3
  20. package/dist/consumer/LitePushConsumerImpl.d.ts +12 -1
  21. package/dist/consumer/LitePushConsumerImpl.js +19 -4
  22. package/dist/consumer/LiteSimpleConsumer.d.ts +177 -0
  23. package/dist/consumer/LiteSimpleConsumer.js +126 -0
  24. package/dist/consumer/LiteSimpleConsumerImpl.d.ts +133 -0
  25. package/dist/consumer/LiteSimpleConsumerImpl.js +187 -0
  26. package/dist/consumer/LiteStandardConsumeService.d.ts +2 -1
  27. package/dist/consumer/LiteStandardConsumeService.js +3 -3
  28. package/dist/consumer/LiteSubscriptionManager.d.ts +27 -6
  29. package/dist/consumer/LiteSubscriptionManager.js +32 -24
  30. package/dist/consumer/ProcessQueue.d.ts +10 -0
  31. package/dist/consumer/ProcessQueue.js +47 -7
  32. package/dist/consumer/PushConsumer.d.ts +17 -0
  33. package/dist/consumer/PushConsumer.js +87 -7
  34. package/dist/consumer/PushConsumerGaugeObserver.d.ts +33 -0
  35. package/dist/consumer/PushConsumerGaugeObserver.js +60 -0
  36. package/dist/consumer/PushSubscriptionSettings.d.ts +8 -1
  37. package/dist/consumer/PushSubscriptionSettings.js +33 -6
  38. package/dist/consumer/SimpleConsumer.js +10 -1
  39. package/dist/consumer/StandardConsumeService.d.ts +2 -1
  40. package/dist/consumer/StandardConsumeService.js +3 -3
  41. package/dist/consumer/index.d.ts +1 -0
  42. package/dist/consumer/index.js +2 -1
  43. package/dist/exception/PayloadEmptyException.d.ts +20 -0
  44. package/dist/exception/PayloadEmptyException.js +28 -0
  45. package/dist/exception/StatusChecker.js +8 -1
  46. package/dist/exception/index.d.ts +1 -0
  47. package/dist/exception/index.js +2 -1
  48. package/dist/hook/Attribute.d.ts +26 -0
  49. package/dist/hook/Attribute.js +37 -0
  50. package/dist/hook/AttributeKey.d.ts +32 -0
  51. package/dist/hook/AttributeKey.js +43 -0
  52. package/dist/hook/CompositedMessageInterceptor.d.ts +31 -0
  53. package/dist/hook/CompositedMessageInterceptor.js +84 -0
  54. package/dist/hook/InflightRequestCountInterceptor.d.ts +28 -0
  55. package/dist/hook/InflightRequestCountInterceptor.js +44 -0
  56. package/dist/hook/MessageHookPoints.d.ts +54 -0
  57. package/dist/hook/MessageHookPoints.js +59 -0
  58. package/dist/hook/MessageHookPointsStatus.d.ts +24 -0
  59. package/dist/hook/MessageHookPointsStatus.js +29 -0
  60. package/dist/hook/MessageInterceptor.d.ts +34 -0
  61. package/dist/hook/MessageInterceptor.js +19 -0
  62. package/dist/hook/MessageInterceptorContext.d.ts +31 -0
  63. package/dist/hook/MessageInterceptorContext.js +19 -0
  64. package/dist/hook/MessageInterceptorContextImpl.d.ts +39 -0
  65. package/dist/hook/MessageInterceptorContextImpl.js +57 -0
  66. package/dist/hook/MessageMeterInterceptor.d.ts +39 -0
  67. package/dist/hook/MessageMeterInterceptor.js +149 -0
  68. package/dist/hook/index.d.ts +26 -0
  69. package/dist/hook/index.js +43 -0
  70. package/dist/index.d.ts +1 -0
  71. package/dist/index.js +2 -1
  72. package/dist/metrics/ClientMeter.d.ts +42 -0
  73. package/dist/metrics/ClientMeter.js +75 -0
  74. package/dist/metrics/ClientMeterManager.d.ts +42 -0
  75. package/dist/metrics/ClientMeterManager.js +127 -0
  76. package/dist/metrics/EmptyGaugeObserver.d.ts +28 -0
  77. package/dist/metrics/EmptyGaugeObserver.js +34 -0
  78. package/dist/metrics/GaugeEnum.d.ts +32 -0
  79. package/dist/metrics/GaugeEnum.js +37 -0
  80. package/dist/metrics/GaugeObserver.d.ts +29 -0
  81. package/dist/metrics/GaugeObserver.js +19 -0
  82. package/dist/metrics/HistogramEnum.d.ts +54 -0
  83. package/dist/metrics/HistogramEnum.js +71 -0
  84. package/dist/metrics/InvocationStatus.d.ts +26 -0
  85. package/dist/metrics/InvocationStatus.js +33 -0
  86. package/dist/metrics/Metric.d.ts +30 -0
  87. package/dist/metrics/Metric.js +44 -0
  88. package/dist/metrics/MetricLabels.d.ts +27 -0
  89. package/dist/metrics/MetricLabels.js +34 -0
  90. package/dist/metrics/index.d.ts +25 -0
  91. package/dist/metrics/index.js +42 -0
  92. package/dist/producer/Producer.js +33 -5
  93. package/dist/producer/PublishingLoadBalancer.js +9 -3
  94. package/dist/retry/CustomizedBackoffRetryPolicy.d.ts +37 -0
  95. package/dist/retry/CustomizedBackoffRetryPolicy.js +72 -0
  96. package/dist/retry/ExponentialBackoffRetryPolicy.js +10 -6
  97. package/dist/retry/RetryPolicy.d.ts +1 -1
  98. package/dist/retry/index.d.ts +1 -0
  99. package/dist/retry/index.js +2 -1
  100. package/dist/route/Endpoints.d.ts +6 -0
  101. package/dist/route/Endpoints.js +56 -4
  102. package/dist/route/IpNameResolver.d.ts +28 -0
  103. package/dist/route/IpNameResolver.js +104 -0
  104. package/dist/util/Semaphore.d.ts +47 -0
  105. package/dist/util/Semaphore.js +82 -0
  106. package/dist/util/index.js +6 -3
  107. package/package.json +6 -2
  108. package/src/client/BaseClient.ts +202 -12
  109. package/src/client/RpcClient.ts +14 -1
  110. package/src/client/RpcClientManager.ts +27 -8
  111. package/src/client/TelemetrySession.ts +47 -9
  112. package/src/consumer/ConsumeResult.ts +5 -2
  113. package/src/consumer/ConsumeService.ts +9 -2
  114. package/src/consumer/ConsumeTask.ts +43 -3
  115. package/src/consumer/Consumer.ts +103 -23
  116. package/src/consumer/FifoConsumeService.ts +4 -2
  117. package/src/consumer/LiteFifoConsumeService.ts +4 -2
  118. package/src/consumer/LitePushConsumerImpl.ts +21 -3
  119. package/src/consumer/LiteSimpleConsumer.ts +251 -0
  120. package/src/consumer/LiteSimpleConsumerImpl.ts +221 -0
  121. package/src/consumer/LiteStandardConsumeService.ts +4 -2
  122. package/src/consumer/LiteSubscriptionManager.ts +63 -36
  123. package/src/consumer/ProcessQueue.ts +54 -3
  124. package/src/consumer/PushConsumer.ts +98 -5
  125. package/src/consumer/PushConsumerGaugeObserver.ts +60 -0
  126. package/src/consumer/PushSubscriptionSettings.ts +38 -7
  127. package/src/consumer/SimpleConsumer.ts +9 -0
  128. package/src/consumer/StandardConsumeService.ts +4 -2
  129. package/src/consumer/index.ts +1 -0
  130. package/src/exception/PayloadEmptyException.ts +25 -0
  131. package/src/exception/StatusChecker.ts +7 -0
  132. package/src/exception/index.ts +1 -0
  133. package/src/hook/Attribute.ts +36 -0
  134. package/src/hook/AttributeKey.ts +42 -0
  135. package/src/hook/CompositedMessageInterceptor.ts +92 -0
  136. package/src/hook/InflightRequestCountInterceptor.ts +46 -0
  137. package/src/hook/MessageHookPoints.ts +55 -0
  138. package/src/hook/MessageHookPointsStatus.ts +25 -0
  139. package/src/hook/MessageInterceptor.ts +35 -0
  140. package/src/hook/MessageInterceptorContext.ts +33 -0
  141. package/src/hook/MessageInterceptorContextImpl.ts +68 -0
  142. package/src/hook/MessageMeterInterceptor.ts +162 -0
  143. package/src/hook/index.ts +27 -0
  144. package/src/index.ts +1 -0
  145. package/src/metrics/ClientMeter.ts +81 -0
  146. package/src/metrics/ClientMeterManager.ts +145 -0
  147. package/src/metrics/EmptyGaugeObserver.ts +36 -0
  148. package/src/metrics/GaugeEnum.ts +33 -0
  149. package/src/metrics/GaugeObserver.ts +32 -0
  150. package/src/metrics/HistogramEnum.ts +69 -0
  151. package/src/metrics/InvocationStatus.ts +28 -0
  152. package/src/metrics/Metric.ts +42 -0
  153. package/src/metrics/MetricLabels.ts +31 -0
  154. package/src/metrics/index.ts +26 -0
  155. package/src/producer/Producer.ts +37 -6
  156. package/src/producer/PublishingLoadBalancer.ts +8 -2
  157. package/src/retry/CustomizedBackoffRetryPolicy.ts +81 -0
  158. package/src/retry/ExponentialBackoffRetryPolicy.ts +11 -6
  159. package/src/retry/RetryPolicy.ts +1 -1
  160. package/src/retry/index.ts +1 -0
  161. package/src/route/Endpoints.ts +52 -3
  162. package/src/route/IpNameResolver.ts +119 -0
  163. package/src/util/Semaphore.ts +82 -0
  164. package/src/util/index.ts +5 -2
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ /**
3
+ * Licensed to the Apache Software Foundation (ASF) under one or more
4
+ * contributor license agreements. See the NOTICE file distributed with
5
+ * this work for additional information regarding copyright ownership.
6
+ * The ASF licenses this file to You under the Apache License, Version 2.0
7
+ * (the "License"); you may not use this file except in compliance with
8
+ * the License. You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ */
18
+ Object.defineProperty(exports, "__esModule", { value: true });
19
+ exports.PayloadEmptyException = void 0;
20
+ const ClientException_1 = require("./ClientException");
21
+ class PayloadEmptyException extends ClientException_1.ClientException {
22
+ constructor(code, message, requestId) {
23
+ super(code, message, requestId);
24
+ this.name = 'PayloadEmptyException';
25
+ }
26
+ }
27
+ exports.PayloadEmptyException = PayloadEmptyException;
28
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUGF5bG9hZEVtcHR5RXhjZXB0aW9uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2V4Y2VwdGlvbi9QYXlsb2FkRW1wdHlFeGNlcHRpb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBOzs7Ozs7Ozs7Ozs7Ozs7R0FlRzs7O0FBRUgsdURBQW9EO0FBRXBELE1BQWEscUJBQXNCLFNBQVEsaUNBQWU7SUFDeEQsWUFBWSxJQUFZLEVBQUUsT0FBZSxFQUFFLFNBQWtCO1FBQzNELEtBQUssQ0FBQyxJQUFJLEVBQUUsT0FBTyxFQUFFLFNBQVMsQ0FBQyxDQUFDO1FBQ2hDLElBQUksQ0FBQyxJQUFJLEdBQUcsdUJBQXVCLENBQUM7SUFDdEMsQ0FBQztDQUNGO0FBTEQsc0RBS0MifQ==
@@ -21,8 +21,10 @@ const definition_pb_1 = require("../../proto/apache/rocketmq/v2/definition_pb");
21
21
  const BadRequestException_1 = require("./BadRequestException");
22
22
  const ForbiddenException_1 = require("./ForbiddenException");
23
23
  const InternalErrorException_1 = require("./InternalErrorException");
24
+ const LiteSubscriptionQuotaExceededException_1 = require("./LiteSubscriptionQuotaExceededException");
24
25
  const LiteTopicQuotaExceededException_1 = require("./LiteTopicQuotaExceededException");
25
26
  const NotFoundException_1 = require("./NotFoundException");
27
+ const PayloadEmptyException_1 = require("./PayloadEmptyException");
26
28
  const PayloadTooLargeException_1 = require("./PayloadTooLargeException");
27
29
  const PaymentRequiredException_1 = require("./PaymentRequiredException");
28
30
  const ProxyTimeoutException_1 = require("./ProxyTimeoutException");
@@ -46,6 +48,7 @@ class StatusChecker {
46
48
  case definition_pb_1.Code.ILLEGAL_MESSAGE_KEY:
47
49
  case definition_pb_1.Code.ILLEGAL_MESSAGE_GROUP:
48
50
  case definition_pb_1.Code.ILLEGAL_MESSAGE_PROPERTY_KEY:
51
+ case definition_pb_1.Code.ILLEGAL_LITE_TOPIC:
49
52
  case definition_pb_1.Code.INVALID_TRANSACTION_ID:
50
53
  case definition_pb_1.Code.ILLEGAL_MESSAGE_ID:
51
54
  case definition_pb_1.Code.ILLEGAL_FILTER_EXPRESSION:
@@ -73,6 +76,8 @@ class StatusChecker {
73
76
  case definition_pb_1.Code.PAYLOAD_TOO_LARGE:
74
77
  case definition_pb_1.Code.MESSAGE_BODY_TOO_LARGE:
75
78
  throw new PayloadTooLargeException_1.PayloadTooLargeException(status.code, status.message, requestId);
79
+ case definition_pb_1.Code.MESSAGE_BODY_EMPTY:
80
+ throw new PayloadEmptyException_1.PayloadEmptyException(status.code, status.message, requestId);
76
81
  case definition_pb_1.Code.TOO_MANY_REQUESTS:
77
82
  throw new TooManyRequestsException_1.TooManyRequestsException(status.code, status.message, requestId);
78
83
  case definition_pb_1.Code.REQUEST_HEADER_FIELDS_TOO_LARGE:
@@ -92,10 +97,12 @@ class StatusChecker {
92
97
  throw new UnsupportedException_1.UnsupportedException(status.code, status.message, requestId);
93
98
  case definition_pb_1.Code.LITE_TOPIC_QUOTA_EXCEEDED:
94
99
  throw new LiteTopicQuotaExceededException_1.LiteTopicQuotaExceededException(status.code, status.message || '', requestId);
100
+ case definition_pb_1.Code.LITE_SUBSCRIPTION_QUOTA_EXCEEDED:
101
+ throw new LiteSubscriptionQuotaExceededException_1.LiteSubscriptionQuotaExceededException(status.code, requestId ?? null, status.message || '');
95
102
  default:
96
103
  throw new UnsupportedException_1.UnsupportedException(status.code, status.message, requestId);
97
104
  }
98
105
  }
99
106
  }
100
107
  exports.StatusChecker = StatusChecker;
101
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiU3RhdHVzQ2hlY2tlci5qcyIsInNvdXJjZVJvb3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0Y7QUF0RUQsc0NBc0VDIn0=
@@ -21,6 +21,7 @@ export * from './InternalErrorException';
21
21
  export * from './LiteSubscriptionQuotaExceededException';
22
22
  export * from './LiteTopicQuotaExceededException';
23
23
  export * from './NotFoundException';
24
+ export * from './PayloadEmptyException';
24
25
  export * from './PayloadTooLargeException';
25
26
  export * from './PaymentRequiredException';
26
27
  export * from './ProxyTimeoutException';
@@ -37,6 +37,7 @@ __exportStar(require("./InternalErrorException"), exports);
37
37
  __exportStar(require("./LiteSubscriptionQuotaExceededException"), exports);
38
38
  __exportStar(require("./LiteTopicQuotaExceededException"), exports);
39
39
  __exportStar(require("./NotFoundException"), exports);
40
+ __exportStar(require("./PayloadEmptyException"), exports);
40
41
  __exportStar(require("./PayloadTooLargeException"), exports);
41
42
  __exportStar(require("./PaymentRequiredException"), exports);
42
43
  __exportStar(require("./ProxyTimeoutException"), exports);
@@ -45,4 +46,4 @@ __exportStar(require("./StatusChecker"), exports);
45
46
  __exportStar(require("./TooManyRequestsException"), exports);
46
47
  __exportStar(require("./UnauthorizedException"), exports);
47
48
  __exportStar(require("./UnsupportedException"), exports);
48
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvZXhjZXB0aW9uL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQTs7Ozs7Ozs7Ozs7Ozs7O0dBZUc7Ozs7Ozs7Ozs7Ozs7Ozs7QUFFSCx3REFBc0M7QUFDdEMsb0RBQWtDO0FBQ2xDLHVEQUFxQztBQUNyQywyREFBeUM7QUFDekMsMkVBQXlEO0FBQ3pELG9FQUFrRDtBQUNsRCxzREFBb0M7QUFDcEMsNkRBQTJDO0FBQzNDLDZEQUEyQztBQUMzQywwREFBd0M7QUFDeEMseUVBQXVEO0FBQ3ZELGtEQUFnQztBQUNoQyw2REFBMkM7QUFDM0MsMERBQXdDO0FBQ3hDLHlEQUF1QyJ9
49
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvZXhjZXB0aW9uL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQTs7Ozs7Ozs7Ozs7Ozs7O0dBZUc7Ozs7Ozs7Ozs7Ozs7Ozs7QUFFSCx3REFBc0M7QUFDdEMsb0RBQWtDO0FBQ2xDLHVEQUFxQztBQUNyQywyREFBeUM7QUFDekMsMkVBQXlEO0FBQ3pELG9FQUFrRDtBQUNsRCxzREFBb0M7QUFDcEMsMERBQXdDO0FBQ3hDLDZEQUEyQztBQUMzQyw2REFBMkM7QUFDM0MsMERBQXdDO0FBQ3hDLHlFQUF1RDtBQUN2RCxrREFBZ0M7QUFDaEMsNkRBQTJDO0FBQzNDLDBEQUF3QztBQUN4Qyx5REFBdUMifQ==
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Licensed to the Apache Software Foundation (ASF) under one or more
3
+ * contributor license agreements. See the NOTICE file distributed with
4
+ * this work for additional information regarding copyright ownership.
5
+ * The ASF licenses this file to You under the Apache License, Version 2.0
6
+ * (the "License"); you may not use this file except in compliance with
7
+ * the License. You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ /**
18
+ * Immutable value holder shared through a {@link MessageInterceptorContext},
19
+ * mirroring org.apache.rocketmq.client.java.hook.Attribute.
20
+ */
21
+ export declare class Attribute<T> {
22
+ #private;
23
+ private constructor();
24
+ static create<T>(value: T): Attribute<T>;
25
+ get(): T;
26
+ }
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ /**
3
+ * Licensed to the Apache Software Foundation (ASF) under one or more
4
+ * contributor license agreements. See the NOTICE file distributed with
5
+ * this work for additional information regarding copyright ownership.
6
+ * The ASF licenses this file to You under the Apache License, Version 2.0
7
+ * (the "License"); you may not use this file except in compliance with
8
+ * the License. You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ */
18
+ Object.defineProperty(exports, "__esModule", { value: true });
19
+ exports.Attribute = void 0;
20
+ /**
21
+ * Immutable value holder shared through a {@link MessageInterceptorContext},
22
+ * mirroring org.apache.rocketmq.client.java.hook.Attribute.
23
+ */
24
+ class Attribute {
25
+ #value;
26
+ constructor(value) {
27
+ this.#value = value;
28
+ }
29
+ static create(value) {
30
+ return new Attribute(value);
31
+ }
32
+ get() {
33
+ return this.#value;
34
+ }
35
+ }
36
+ exports.Attribute = Attribute;
37
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQXR0cmlidXRlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2hvb2svQXR0cmlidXRlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQTs7Ozs7Ozs7Ozs7Ozs7O0dBZUc7OztBQUVIOzs7R0FHRztBQUNILE1BQWEsU0FBUztJQUNYLE1BQU0sQ0FBSTtJQUVuQixZQUFvQixLQUFRO1FBQzFCLElBQUksQ0FBQyxNQUFNLEdBQUcsS0FBSyxDQUFDO0lBQ3RCLENBQUM7SUFFRCxNQUFNLENBQUMsTUFBTSxDQUFJLEtBQVE7UUFDdkIsT0FBTyxJQUFJLFNBQVMsQ0FBQyxLQUFLLENBQUMsQ0FBQztJQUM5QixDQUFDO0lBRUQsR0FBRztRQUNELE9BQU8sSUFBSSxDQUFDLE1BQU0sQ0FBQztJQUNyQixDQUFDO0NBQ0Y7QUFkRCw4QkFjQyJ9
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Licensed to the Apache Software Foundation (ASF) under one or more
3
+ * contributor license agreements. See the NOTICE file distributed with
4
+ * this work for additional information regarding copyright ownership.
5
+ * The ASF licenses this file to You under the Apache License, Version 2.0
6
+ * (the "License"); you may not use this file except in compliance with
7
+ * the License. You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ /**
18
+ * Typed key of a context attribute, mirroring
19
+ * org.apache.rocketmq.client.java.hook.AttributeKey.
20
+ *
21
+ * The type parameter is only used for compile-time typing of the associated value.
22
+ */
23
+ export declare class AttributeKey<T> {
24
+ readonly name: string;
25
+ /**
26
+ * Never assigned at runtime; it only carries the value type for compile-time typing.
27
+ */
28
+ readonly typeHint?: T;
29
+ constructor(name: string);
30
+ static create<T>(name: string): AttributeKey<T>;
31
+ toString(): string;
32
+ }
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ /**
3
+ * Licensed to the Apache Software Foundation (ASF) under one or more
4
+ * contributor license agreements. See the NOTICE file distributed with
5
+ * this work for additional information regarding copyright ownership.
6
+ * The ASF licenses this file to You under the Apache License, Version 2.0
7
+ * (the "License"); you may not use this file except in compliance with
8
+ * the License. You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ */
18
+ Object.defineProperty(exports, "__esModule", { value: true });
19
+ exports.AttributeKey = void 0;
20
+ /**
21
+ * Typed key of a context attribute, mirroring
22
+ * org.apache.rocketmq.client.java.hook.AttributeKey.
23
+ *
24
+ * The type parameter is only used for compile-time typing of the associated value.
25
+ */
26
+ class AttributeKey {
27
+ name;
28
+ /**
29
+ * Never assigned at runtime; it only carries the value type for compile-time typing.
30
+ */
31
+ typeHint;
32
+ constructor(name) {
33
+ this.name = name;
34
+ }
35
+ static create(name) {
36
+ return new AttributeKey(name);
37
+ }
38
+ toString() {
39
+ return `AttributeKey(${this.name})`;
40
+ }
41
+ }
42
+ exports.AttributeKey = AttributeKey;
43
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQXR0cmlidXRlS2V5LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2hvb2svQXR0cmlidXRlS2V5LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQTs7Ozs7Ozs7Ozs7Ozs7O0dBZUc7OztBQUVIOzs7OztHQUtHO0FBQ0gsTUFBYSxZQUFZO0lBQ2QsSUFBSSxDQUFTO0lBQ3RCOztPQUVHO0lBQ00sUUFBUSxDQUFLO0lBRXRCLFlBQVksSUFBWTtRQUN0QixJQUFJLENBQUMsSUFBSSxHQUFHLElBQUksQ0FBQztJQUNuQixDQUFDO0lBRUQsTUFBTSxDQUFDLE1BQU0sQ0FBSSxJQUFZO1FBQzNCLE9BQU8sSUFBSSxZQUFZLENBQUksSUFBSSxDQUFDLENBQUM7SUFDbkMsQ0FBQztJQUVELFFBQVE7UUFDTixPQUFPLGdCQUFnQixJQUFJLENBQUMsSUFBSSxHQUFHLENBQUM7SUFDdEMsQ0FBQztDQUNGO0FBbEJELG9DQWtCQyJ9
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Licensed to the Apache Software Foundation (ASF) under one or more
3
+ * contributor license agreements. See the NOTICE file distributed with
4
+ * this work for additional information regarding copyright ownership.
5
+ * The ASF licenses this file to You under the Apache License, Version 2.0
6
+ * (the "License"); you may not use this file except in compliance with
7
+ * the License. You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import { MessageInterceptorContext } from './MessageInterceptorContext';
18
+ import { GeneralMessage, MessageInterceptor } from './MessageInterceptor';
19
+ /**
20
+ * Composite interceptor which delegates to a chain of interceptors: doBefore runs
21
+ * in registration order while doAfter runs in reverse order, mirroring
22
+ * org.apache.rocketmq.client.java.hook.CompositedMessageInterceptor.
23
+ */
24
+ export declare class CompositedMessageInterceptor implements MessageInterceptor {
25
+ #private;
26
+ constructor(interceptors?: MessageInterceptor[]);
27
+ addInterceptor(interceptor: MessageInterceptor): void;
28
+ get size(): number;
29
+ doBefore(context0: MessageInterceptorContext, messages: GeneralMessage[]): void;
30
+ doAfter(context0: MessageInterceptorContext, messages: GeneralMessage[]): void;
31
+ }
@@ -0,0 +1,84 @@
1
+ "use strict";
2
+ /**
3
+ * Licensed to the Apache Software Foundation (ASF) under one or more
4
+ * contributor license agreements. See the NOTICE file distributed with
5
+ * this work for additional information regarding copyright ownership.
6
+ * The ASF licenses this file to You under the Apache License, Version 2.0
7
+ * (the "License"); you may not use this file except in compliance with
8
+ * the License. You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ */
18
+ Object.defineProperty(exports, "__esModule", { value: true });
19
+ exports.CompositedMessageInterceptor = void 0;
20
+ const Attribute_1 = require("./Attribute");
21
+ const AttributeKey_1 = require("./AttributeKey");
22
+ const MessageHookPointsStatus_1 = require("./MessageHookPointsStatus");
23
+ const MessageInterceptorContextImpl_1 = require("./MessageInterceptorContextImpl");
24
+ // Key under which per-interceptor attributes are stashed between doBefore and doAfter.
25
+ const INTERCEPTOR_ATTRIBUTES_KEY = AttributeKey_1.AttributeKey
26
+ .create('composited_interceptor_attributes');
27
+ /**
28
+ * Composite interceptor which delegates to a chain of interceptors: doBefore runs
29
+ * in registration order while doAfter runs in reverse order, mirroring
30
+ * org.apache.rocketmq.client.java.hook.CompositedMessageInterceptor.
31
+ */
32
+ class CompositedMessageInterceptor {
33
+ #interceptors = [];
34
+ constructor(interceptors = []) {
35
+ this.#interceptors.push(...interceptors);
36
+ }
37
+ addInterceptor(interceptor) {
38
+ this.#interceptors.push(interceptor);
39
+ }
40
+ get size() {
41
+ return this.#interceptors.length;
42
+ }
43
+ doBefore(context0, messages) {
44
+ const attributeMap = new Map();
45
+ // A single cumulative context is shared by the whole chain, mirroring the Java
46
+ // implementation, so that later interceptors observe what earlier ones recorded.
47
+ const context = new MessageInterceptorContextImpl_1.MessageInterceptorContextImpl(context0.getMessageHookPoints(), context0.getStatus());
48
+ for (let index = 0; index < this.#interceptors.length; index++) {
49
+ for (const [key, value] of context0.getAttributes()) {
50
+ context.putAttribute(key, value);
51
+ }
52
+ try {
53
+ this.#interceptors[index].doBefore(context, messages);
54
+ }
55
+ catch (t) {
56
+ // Interceptors must never break the message pipeline.
57
+ // eslint-disable-next-line no-console
58
+ console.error('[CompositedMessageInterceptor] Exception raised while handling messages before hook point=%s, error=%s', context0.getMessageHookPoints(), t);
59
+ }
60
+ attributeMap.set(index, context.getAttributes());
61
+ }
62
+ context0.putAttribute(INTERCEPTOR_ATTRIBUTES_KEY, Attribute_1.Attribute.create(attributeMap));
63
+ }
64
+ doAfter(context0, messages) {
65
+ const attributeMap = context0.getAttribute(INTERCEPTOR_ATTRIBUTES_KEY)?.get()
66
+ ?? new Map();
67
+ for (let index = this.#interceptors.length - 1; index >= 0; index--) {
68
+ const attributes = attributeMap.get(index);
69
+ const context = new MessageInterceptorContextImpl_1.MessageInterceptorContextImpl(context0.getMessageHookPoints(), context0.getStatus() ?? MessageHookPointsStatus_1.MessageHookPointsStatus.OK, attributes);
70
+ for (const [key, value] of context0.getAttributes()) {
71
+ context.putAttribute(key, value);
72
+ }
73
+ try {
74
+ this.#interceptors[index].doAfter(context, messages);
75
+ }
76
+ catch (t) {
77
+ // eslint-disable-next-line no-console
78
+ console.error('[CompositedMessageInterceptor] Exception raised while handling messages after hook point=%s, error=%s', context0.getMessageHookPoints(), t);
79
+ }
80
+ }
81
+ }
82
+ }
83
+ exports.CompositedMessageInterceptor = CompositedMessageInterceptor;
84
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQ29tcG9zaXRlZE1lc3NhZ2VJbnRlcmNlcHRvci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ob29rL0NvbXBvc2l0ZWRNZXNzYWdlSW50ZXJjZXB0b3IudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBOzs7Ozs7Ozs7Ozs7Ozs7R0FlRzs7O0FBRUgsMkNBQXdDO0FBQ3hDLGlEQUE4QztBQUM5Qyx1RUFBb0U7QUFFcEUsbUZBQWdGO0FBR2hGLHVGQUF1RjtBQUN2RixNQUFNLDBCQUEwQixHQUFHLDJCQUFZO0tBQzVDLE1BQU0sQ0FBc0QsbUNBQW1DLENBQUMsQ0FBQztBQUVwRzs7OztHQUlHO0FBQ0gsTUFBYSw0QkFBNEI7SUFDOUIsYUFBYSxHQUF5QixFQUFF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Q0FBQyxhQUFhLEVBQUUsRUFBRSxDQUFDO2dCQUN0RCxPQUFPLENBQUMsWUFBWSxDQUFDLEdBQUcsRUFBRSxLQUFLLENBQUMsQ0FBQztZQUNuQyxDQUFDO1lBQ0QsSUFBSSxDQUFDO2dCQUNILElBQUksQ0FBQyxhQUFhLENBQUMsS0FBSyxDQUFDLENBQUMsT0FBTyxDQUFDLE9BQU8sRUFBRSxRQUFRLENBQUMsQ0FBQztZQUN2RCxDQUFDO1lBQUMsT0FBTyxDQUFDLEVBQUUsQ0FBQztnQkFDWCxzQ0FBc0M7Z0JBQ3RDLE9BQU8sQ0FBQyxLQUFLLENBQ1gsdUdBQXVHLEVBQ3ZHLFFBQVEsQ0FBQyxvQkFBb0IsRUFBRSxFQUFFLENBQUMsQ0FBQyxDQUFDO1lBQ3hDLENBQUM7UUFDSCxDQUFDO0lBQ0gsQ0FBQztDQUNGO0FBMURELG9FQTBEQyJ9
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Licensed to the Apache Software Foundation (ASF) under one or more
3
+ * contributor license agreements. See the NOTICE file distributed with
4
+ * this work for additional information regarding copyright ownership.
5
+ * The ASF licenses this file to You under the Apache License, Version 2.0
6
+ * (the "License"); you may not use this file except in compliance with
7
+ * the License. You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import { MessageInterceptorContext } from './MessageInterceptorContext';
18
+ import { GeneralMessage, MessageInterceptor } from './MessageInterceptor';
19
+ /**
20
+ * Interceptor which counts the in-flight receive requests, mirroring
21
+ * org.apache.rocketmq.client.java.hook.InflightRequestCountInterceptor.
22
+ */
23
+ export declare class InflightRequestCountInterceptor implements MessageInterceptor {
24
+ #private;
25
+ doBefore(context: MessageInterceptorContext, _messages: GeneralMessage[]): void;
26
+ doAfter(context: MessageInterceptorContext, _messages: GeneralMessage[]): void;
27
+ getInflightReceiveRequestCount(): number;
28
+ }
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ /**
3
+ * Licensed to the Apache Software Foundation (ASF) under one or more
4
+ * contributor license agreements. See the NOTICE file distributed with
5
+ * this work for additional information regarding copyright ownership.
6
+ * The ASF licenses this file to You under the Apache License, Version 2.0
7
+ * (the "License"); you may not use this file except in compliance with
8
+ * the License. You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ */
18
+ Object.defineProperty(exports, "__esModule", { value: true });
19
+ exports.InflightRequestCountInterceptor = void 0;
20
+ const MessageHookPoints_1 = require("./MessageHookPoints");
21
+ /**
22
+ * Interceptor which counts the in-flight receive requests, mirroring
23
+ * org.apache.rocketmq.client.java.hook.InflightRequestCountInterceptor.
24
+ */
25
+ class InflightRequestCountInterceptor {
26
+ #inflightReceiveRequestCount = 0;
27
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
28
+ doBefore(context, _messages) {
29
+ if (context.getMessageHookPoints() === MessageHookPoints_1.MessageHookPoints.RECEIVE) {
30
+ this.#inflightReceiveRequestCount++;
31
+ }
32
+ }
33
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
34
+ doAfter(context, _messages) {
35
+ if (context.getMessageHookPoints() === MessageHookPoints_1.MessageHookPoints.RECEIVE) {
36
+ this.#inflightReceiveRequestCount--;
37
+ }
38
+ }
39
+ getInflightReceiveRequestCount() {
40
+ return this.#inflightReceiveRequestCount;
41
+ }
42
+ }
43
+ exports.InflightRequestCountInterceptor = InflightRequestCountInterceptor;
44
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiSW5mbGlnaHRSZXF1ZXN0Q291bnRJbnRlcmNlcHRvci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ob29rL0luZmxpZ2h0UmVxdWVzdENvdW50SW50ZXJjZXB0b3IudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBOzs7Ozs7Ozs7Ozs7Ozs7R0FlRzs7O0FBRUgsMkRBQXdEO0FBSXhEOzs7R0FHRztBQUNILE1BQWEsK0JBQStCO0lBQzFDLDRCQUE0QixHQUFHLENBQUMsQ0FBQztJQUVqQyw2REFBNkQ7SUFDN0QsUUFBUSxDQUFDLE9BQWtDLEVBQUUsU0FBMkI7UUFDdEUsSUFBSSxPQUFPLENBQUMsb0JBQW9CLEVBQUUsS0FBSyxxQ0FBaUIsQ0FBQyxPQUFPLEVBQUUsQ0FBQztZQUNqRSxJQUFJLENBQUMsNEJBQTRCLEVBQUUsQ0FBQztRQUN0QyxDQUFDO0lBQ0gsQ0FBQztJQUVELDZEQUE2RDtJQUM3RCxPQUFPLENBQUMsT0FBa0MsRUFBRSxTQUEyQjtRQUNyRSxJQUFJLE9BQU8sQ0FBQyxvQkFBb0IsRUFBRSxLQUFLLHFDQUFpQixDQUFDLE9BQU8sRUFBRSxDQUFDO1lBQ2pFLElBQUksQ0FBQyw0QkFBNEIsRUFBRSxDQUFDO1FBQ3RDLENBQUM7SUFDSCxDQUFDO0lBRUQsOEJBQThCO1FBQzVCLE9BQU8sSUFBSSxDQUFDLDRCQUE0QixDQUFDO0lBQzNDLENBQUM7Q0FDRjtBQXBCRCwwRUFvQkMifQ==
@@ -0,0 +1,54 @@
1
+ /**
2
+ * Licensed to the Apache Software Foundation (ASF) under one or more
3
+ * contributor license agreements. See the NOTICE file distributed with
4
+ * this work for additional information regarding copyright ownership.
5
+ * The ASF licenses this file to You under the Apache License, Version 2.0
6
+ * (the "License"); you may not use this file except in compliance with
7
+ * the License. You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ /**
18
+ * Hook points at which {@link MessageInterceptor}s are invoked, mirroring
19
+ * org.apache.rocketmq.client.java.hook.MessageHookPoints.
20
+ */
21
+ export declare enum MessageHookPoints {
22
+ /**
23
+ * The hook point of message publishing.
24
+ */
25
+ SEND = "SEND",
26
+ /**
27
+ * The hook point of message reception.
28
+ */
29
+ RECEIVE = "RECEIVE",
30
+ /**
31
+ * The hook point of message consumption.
32
+ */
33
+ CONSUME = "CONSUME",
34
+ /**
35
+ * The hook point of message ack acknowledgement.
36
+ */
37
+ ACK = "ACK",
38
+ /**
39
+ * The hook point of message changing invisible duration.
40
+ */
41
+ CHANGE_INVISIBLE_DURATION = "CHANGE_INVISIBLE_DURATION",
42
+ /**
43
+ * The hook point of message transaction commit.
44
+ */
45
+ COMMIT_TRANSACTION = "COMMIT_TRANSACTION",
46
+ /**
47
+ * The hook point of message transaction rollback.
48
+ */
49
+ ROLLBACK_TRANSACTION = "ROLLBACK_TRANSACTION",
50
+ /**
51
+ * The hook point of forwarding message to DLQ.
52
+ */
53
+ FORWARD_TO_DLQ = "FORWARD_TO_DLQ"
54
+ }
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ /**
3
+ * Licensed to the Apache Software Foundation (ASF) under one or more
4
+ * contributor license agreements. See the NOTICE file distributed with
5
+ * this work for additional information regarding copyright ownership.
6
+ * The ASF licenses this file to You under the Apache License, Version 2.0
7
+ * (the "License"); you may not use this file except in compliance with
8
+ * the License. You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ */
18
+ Object.defineProperty(exports, "__esModule", { value: true });
19
+ exports.MessageHookPoints = void 0;
20
+ /**
21
+ * Hook points at which {@link MessageInterceptor}s are invoked, mirroring
22
+ * org.apache.rocketmq.client.java.hook.MessageHookPoints.
23
+ */
24
+ var MessageHookPoints;
25
+ (function (MessageHookPoints) {
26
+ /**
27
+ * The hook point of message publishing.
28
+ */
29
+ MessageHookPoints["SEND"] = "SEND";
30
+ /**
31
+ * The hook point of message reception.
32
+ */
33
+ MessageHookPoints["RECEIVE"] = "RECEIVE";
34
+ /**
35
+ * The hook point of message consumption.
36
+ */
37
+ MessageHookPoints["CONSUME"] = "CONSUME";
38
+ /**
39
+ * The hook point of message ack acknowledgement.
40
+ */
41
+ MessageHookPoints["ACK"] = "ACK";
42
+ /**
43
+ * The hook point of message changing invisible duration.
44
+ */
45
+ MessageHookPoints["CHANGE_INVISIBLE_DURATION"] = "CHANGE_INVISIBLE_DURATION";
46
+ /**
47
+ * The hook point of message transaction commit.
48
+ */
49
+ MessageHookPoints["COMMIT_TRANSACTION"] = "COMMIT_TRANSACTION";
50
+ /**
51
+ * The hook point of message transaction rollback.
52
+ */
53
+ MessageHookPoints["ROLLBACK_TRANSACTION"] = "ROLLBACK_TRANSACTION";
54
+ /**
55
+ * The hook point of forwarding message to DLQ.
56
+ */
57
+ MessageHookPoints["FORWARD_TO_DLQ"] = "FORWARD_TO_DLQ";
58
+ })(MessageHookPoints || (exports.MessageHookPoints = MessageHookPoints = {}));
59
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiTWVzc2FnZUhvb2tQb2ludHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaG9vay9NZXNzYWdlSG9va1BvaW50cy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUE7Ozs7Ozs7Ozs7Ozs7OztHQWVHOzs7QUFFSDs7O0dBR0c7QUFDSCxJQUFZLGlCQWlDWDtBQWpDRCxXQUFZLGlCQUFpQjtJQUMzQjs7T0FFRztJQUNILGtDQUFhLENBQUE7SUFDYjs7T0FFRztJQUNILHdDQUFtQixDQUFBO0lBQ25COztPQUVHO0lBQ0gsd0NBQW1CLENBQUE7SUFDbkI7O09BRUc7SUFDSCxnQ0FBVyxDQUFBO0lBQ1g7O09BRUc7SUFDSCw0RUFBdUQsQ0FBQTtJQUN2RDs7T0FFRztJQUNILDhEQUF5QyxDQUFBO0lBQ3pDOztPQUVHO0lBQ0gsa0VBQTZDLENBQUE7SUFDN0M7O09BRUc7SUFDSCxzREFBaUMsQ0FBQTtBQUNuQyxDQUFDLEVBakNXLGlCQUFpQixpQ0FBakIsaUJBQWlCLFFBaUM1QiJ9
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Licensed to the Apache Software Foundation (ASF) under one or more
3
+ * contributor license agreements. See the NOTICE file distributed with
4
+ * this work for additional information regarding copyright ownership.
5
+ * The ASF licenses this file to You under the Apache License, Version 2.0
6
+ * (the "License"); you may not use this file except in compliance with
7
+ * the License. You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ /**
18
+ * Status of a hook point invocation, mirroring
19
+ * org.apache.rocketmq.client.java.hook.MessageHookPointsStatus.
20
+ */
21
+ export declare enum MessageHookPointsStatus {
22
+ OK = "OK",
23
+ ERROR = "ERROR"
24
+ }
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ /**
3
+ * Licensed to the Apache Software Foundation (ASF) under one or more
4
+ * contributor license agreements. See the NOTICE file distributed with
5
+ * this work for additional information regarding copyright ownership.
6
+ * The ASF licenses this file to You under the Apache License, Version 2.0
7
+ * (the "License"); you may not use this file except in compliance with
8
+ * the License. You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ */
18
+ Object.defineProperty(exports, "__esModule", { value: true });
19
+ exports.MessageHookPointsStatus = void 0;
20
+ /**
21
+ * Status of a hook point invocation, mirroring
22
+ * org.apache.rocketmq.client.java.hook.MessageHookPointsStatus.
23
+ */
24
+ var MessageHookPointsStatus;
25
+ (function (MessageHookPointsStatus) {
26
+ MessageHookPointsStatus["OK"] = "OK";
27
+ MessageHookPointsStatus["ERROR"] = "ERROR";
28
+ })(MessageHookPointsStatus || (exports.MessageHookPointsStatus = MessageHookPointsStatus = {}));
29
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiTWVzc2FnZUhvb2tQb2ludHNTdGF0dXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaG9vay9NZXNzYWdlSG9va1BvaW50c1N0YXR1cy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUE7Ozs7Ozs7Ozs7Ozs7OztHQWVHOzs7QUFFSDs7O0dBR0c7QUFDSCxJQUFZLHVCQUdYO0FBSEQsV0FBWSx1QkFBdUI7SUFDakMsb0NBQVMsQ0FBQTtJQUNULDBDQUFlLENBQUE7QUFDakIsQ0FBQyxFQUhXLHVCQUF1Qix1Q0FBdkIsdUJBQXVCLFFBR2xDIn0=