org.apache.rocketmq.broker.mqtrace.ConsumeMessageHook Java Examples
The following examples show how to use
org.apache.rocketmq.broker.mqtrace.ConsumeMessageHook.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: PullMessageProcessor.java From rocketmq-read with Apache License 2.0 | 5 votes |
public void executeConsumeMessageHookBefore(final ConsumeMessageContext context) { if (hasConsumeMessageHook()) { for (ConsumeMessageHook hook : this.consumeMessageHookList) { try { hook.consumeMessageBefore(context); } catch (Throwable e) { //; } } } }
Example #2
Source File: SendMessageProcessor.java From DDMQ with Apache License 2.0 | 5 votes |
public void executeConsumeMessageHookAfter(final ConsumeMessageContext context) { if (hasConsumeMessageHook()) { for (ConsumeMessageHook hook : this.consumeMessageHookList) { try { hook.consumeMessageAfter(context); } catch (Throwable e) { // Ignore } } } }
Example #3
Source File: PullMessageProcessor.java From DDMQ with Apache License 2.0 | 5 votes |
public void executeConsumeMessageHookBefore(final ConsumeMessageContext context) { if (hasConsumeMessageHook()) { for (ConsumeMessageHook hook : this.consumeMessageHookList) { try { hook.consumeMessageBefore(context); } catch (Throwable e) { } } } }
Example #4
Source File: PullMessageProcessor.java From rocketmq-all-4.1.0-incubating with Apache License 2.0 | 5 votes |
public void executeConsumeMessageHookBefore(final ConsumeMessageContext context) { if (hasConsumeMessageHook()) { for (ConsumeMessageHook hook : this.consumeMessageHookList) { try { hook.consumeMessageBefore(context); } catch (Throwable e) { } } } }
Example #5
Source File: SendMessageProcessor.java From rocketmq with Apache License 2.0 | 5 votes |
public void executeConsumeMessageHookAfter(final ConsumeMessageContext context) { if (hasConsumeMessageHook()) { for (ConsumeMessageHook hook : this.consumeMessageHookList) { try { hook.consumeMessageAfter(context); } catch (Throwable e) { // Ignore } } } }
Example #6
Source File: SendMessageProcessor.java From rocketmq-all-4.1.0-incubating with Apache License 2.0 | 5 votes |
public void executeConsumeMessageHookAfter(final ConsumeMessageContext context) { if (hasConsumeMessageHook()) { for (ConsumeMessageHook hook : this.consumeMessageHookList) { try { hook.consumeMessageAfter(context); } catch (Throwable e) { // Ignore } } } }
Example #7
Source File: PullMessageProcessor.java From rocketmq with Apache License 2.0 | 5 votes |
public void executeConsumeMessageHookBefore(final ConsumeMessageContext context) { if (hasConsumeMessageHook()) { for (ConsumeMessageHook hook : this.consumeMessageHookList) { try { hook.consumeMessageBefore(context); } catch (Throwable e) { } } } }
Example #8
Source File: SendMessageProcessor.java From rocketmq-read with Apache License 2.0 | 5 votes |
/** * 执行消费勾子 * @param context ; */ public void executeConsumeMessageHookAfter(final ConsumeMessageContext context) { if (hasConsumeMessageHook()) { for (ConsumeMessageHook hook : this.consumeMessageHookList) { try { hook.consumeMessageAfter(context); } catch (Throwable e) { // Ignore } } } }
Example #9
Source File: PullMessageProcessor.java From rocketmq_trans_message with Apache License 2.0 | 5 votes |
public void executeConsumeMessageHookBefore(final ConsumeMessageContext context) { if (hasConsumeMessageHook()) { for (ConsumeMessageHook hook : this.consumeMessageHookList) { try { hook.consumeMessageBefore(context); } catch (Throwable e) { } } } }
Example #10
Source File: SendMessageProcessor.java From rocketmq_trans_message with Apache License 2.0 | 5 votes |
public void executeConsumeMessageHookAfter(final ConsumeMessageContext context) { if (hasConsumeMessageHook()) { for (ConsumeMessageHook hook : this.consumeMessageHookList) { try { hook.consumeMessageAfter(context); } catch (Throwable e) { // Ignore } } } }
Example #11
Source File: PullMessageProcessor.java From DDMQ with Apache License 2.0 | 5 votes |
public void executeConsumeMessageHookBefore(final ConsumeMessageContext context) { if (hasConsumeMessageHook()) { for (ConsumeMessageHook hook : this.consumeMessageHookList) { try { hook.consumeMessageBefore(context); } catch (Throwable e) { } } } }
Example #12
Source File: PullMessageProcessor.java From rocketmq-4.3.0 with Apache License 2.0 | 5 votes |
public void executeConsumeMessageHookBefore(final ConsumeMessageContext context) { if (hasConsumeMessageHook()) { for (ConsumeMessageHook hook : this.consumeMessageHookList) { try { // 用户可以实现自己在消费之前的钩子方法 hook.consumeMessageBefore(context); } catch (Throwable e) { } } } }
Example #13
Source File: SendMessageProcessor.java From rocketmq with Apache License 2.0 | 5 votes |
public void executeConsumeMessageHookAfter(final ConsumeMessageContext context) { if (hasConsumeMessageHook()) { for (ConsumeMessageHook hook : this.consumeMessageHookList) { try { hook.consumeMessageAfter(context); } catch (Throwable e) { // Ignore } } } }
Example #14
Source File: SendMessageProcessor.java From DDMQ with Apache License 2.0 | 5 votes |
public void executeConsumeMessageHookAfter(final ConsumeMessageContext context) { if (hasConsumeMessageHook()) { for (ConsumeMessageHook hook : this.consumeMessageHookList) { try { hook.consumeMessageAfter(context); } catch (Throwable e) { // Ignore } } } }
Example #15
Source File: SendMessageProcessor.java From rocketmq-4.3.0 with Apache License 2.0 | 5 votes |
public void executeConsumeMessageHookAfter(final ConsumeMessageContext context) { if (hasConsumeMessageHook()) { for (ConsumeMessageHook hook : this.consumeMessageHookList) { try { // 客户可以实现自己的消费消息后的钩子方法 hook.consumeMessageAfter(context); } catch (Throwable e) { // Ignore } } } }
Example #16
Source File: PullMessageProcessor.java From rocketmq with Apache License 2.0 | 5 votes |
public void executeConsumeMessageHookBefore(final ConsumeMessageContext context) { if (hasConsumeMessageHook()) { for (ConsumeMessageHook hook : this.consumeMessageHookList) { try { hook.consumeMessageBefore(context); } catch (Throwable e) { } } } }
Example #17
Source File: SendMessageProcessor.java From rocketmq-all-4.1.0-incubating with Apache License 2.0 | 4 votes |
public void registerConsumeMessageHook(List<ConsumeMessageHook> consumeMessageHookList) { this.consumeMessageHookList = consumeMessageHookList; }
Example #18
Source File: SendMessageProcessor.java From rocketmq with Apache License 2.0 | 4 votes |
public void registerConsumeMessageHook(List<ConsumeMessageHook> consumeMessageHookList) { this.consumeMessageHookList = consumeMessageHookList; }
Example #19
Source File: BrokerController.java From rocketmq-all-4.1.0-incubating with Apache License 2.0 | 4 votes |
public List<ConsumeMessageHook> getConsumeMessageHookList() { return consumeMessageHookList; }
Example #20
Source File: BrokerController.java From rocketmq-all-4.1.0-incubating with Apache License 2.0 | 4 votes |
public void registerConsumeMessageHook(final ConsumeMessageHook hook) { this.consumeMessageHookList.add(hook); log.info("register ConsumeMessageHook Hook, {}", hook.hookName()); }
Example #21
Source File: PullMessageProcessor.java From rocketmq-all-4.1.0-incubating with Apache License 2.0 | 4 votes |
public void registerConsumeMessageHook(List<ConsumeMessageHook> sendMessageHookList) { this.consumeMessageHookList = sendMessageHookList; }
Example #22
Source File: PullMessageProcessor.java From rocketmq with Apache License 2.0 | 4 votes |
public void registerConsumeMessageHook(List<ConsumeMessageHook> sendMessageHookList) { this.consumeMessageHookList = sendMessageHookList; }
Example #23
Source File: BrokerController.java From rocketmq_trans_message with Apache License 2.0 | 4 votes |
public List<ConsumeMessageHook> getConsumeMessageHookList() { return consumeMessageHookList; }
Example #24
Source File: BrokerController.java From rocketmq_trans_message with Apache License 2.0 | 4 votes |
public void registerConsumeMessageHook(final ConsumeMessageHook hook) { this.consumeMessageHookList.add(hook); log.info("register ConsumeMessageHook Hook, {}", hook.hookName()); }
Example #25
Source File: BrokerController.java From rocketmq with Apache License 2.0 | 4 votes |
public void registerConsumeMessageHook(final ConsumeMessageHook hook) { this.consumeMessageHookList.add(hook); log.info("register ConsumeMessageHook Hook, {}", hook.hookName()); }
Example #26
Source File: BrokerController.java From DDMQ with Apache License 2.0 | 4 votes |
public List<ConsumeMessageHook> getConsumeMessageHookList() { return consumeMessageHookList; }
Example #27
Source File: PullMessageProcessor.java From rocketmq_trans_message with Apache License 2.0 | 4 votes |
public void registerConsumeMessageHook(List<ConsumeMessageHook> sendMessageHookList) { this.consumeMessageHookList = sendMessageHookList; }
Example #28
Source File: BrokerController.java From rocketmq with Apache License 2.0 | 4 votes |
public List<ConsumeMessageHook> getConsumeMessageHookList() { return consumeMessageHookList; }
Example #29
Source File: SendMessageProcessor.java From rocketmq_trans_message with Apache License 2.0 | 4 votes |
public void registerConsumeMessageHook(List<ConsumeMessageHook> consumeMessageHookList) { this.consumeMessageHookList = consumeMessageHookList; }
Example #30
Source File: PullMessageProcessor.java From rocketmq-read with Apache License 2.0 | 4 votes |
/** * 注册ConsumeMessageHook */ public void registerConsumeMessageHook(List<ConsumeMessageHook> sendMessageHookList) { this.consumeMessageHookList = sendMessageHookList; }