我收到了一個com.google.common.event.disuptor.EventDisruptor的項目源,但是我找不到這個東西。這是來自disuptor的嗎?哪些jar包含com.google.common.event.disuptor.EventDisruptor?
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();
}
}
任何的(這些)(http://grepcode.com/search/?query=com.google.common.event.disuptor .EventDisruptor)?另外,如果你使用Eclipse這樣的IDE,那麼'Ctrl + Shift + T'和鍵入'EventDisruptor'應該會給你提供這些信息。 –
或者看[這裏](http://search.maven.org/#search|ga|1|a%3A%22disruptor%22) –