哪个jar有com.google.common.event.disuptor.EventDisruptor?

时间:2013-10-30 07:47:35

标签: disruptor-pattern

我有一个有com.google.common.event.disuptor.EventDisruptor的项目源,但是我找不到关于这个的东西。这是来自disuptor吗?

import com.google.common.domain.message.DomainEventHandler;
import com.google.common.event.disuptor.EventDisruptor;
....
@Consumer("receivePayOrderState")
public class ReceivePayOrderState implements DomainEventHandler {
    private final Logger logger = LoggerFactory.getLogger(ReceivePayOrderState.class);
    private final Logger biLogger = LoggerFactory.getLogger("sms_order_bi");
    private int maxOrderMoney;

    @Override
    public void onEvent(EventDisruptor event, boolean endOfBatch) throws Exception {
        PayOrder payOrder = (PayOrder) event.getDomainMessage().getEventSource();
    }
}

1 个答案:

答案 0 :(得分:0)

来自破坏者的所有类都在com.lmax.disruptor之下。所以不是它不是破坏者的一部分。版本2.7到2.10托管在谷歌代码上,并使用maven组ID com.googlecode.disruptor发布,但实际的包是com.lmax.disruptor

按照S.R.I的建议去寻找grepcode看起来jdonframework就是你的回答