Java Code Examples for org.apache.rocketmq.broker.mqtrace.ConsumeMessageHook#consumeMessageBefore()
The following examples show how to use
org.apache.rocketmq.broker.mqtrace.ConsumeMessageHook#consumeMessageBefore() .
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 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 2
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 3
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 4
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 5
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 6
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 7
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 8
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) { } } } }