com.taobao.metamorphosis.consumer
接口 ConsumerMessageFilter
public interface ConsumerMessageFilter
A filter to filter messages for special consumer group.
- 从以下版本开始:
- 1.4.6
- 作者:
- dennis
方法摘要 |
boolean |
accept(String group,
Message message)
Test if the filter can accept a metaq message.Any exceptions threw by
this method means the message is not accepted.This method must be
thread-safe. |
accept
boolean accept(String group,
Message message)
- Test if the filter can accept a metaq message.Any exceptions threw by
this method means the message is not accepted.This method must be
thread-safe.
- 参数:
group
- message
-
- 返回:
- true if it accepts.
Copyright © 2010–2013. All rights reserved.