我知道我的问题违背了Disruptor API的基本主张。但随着我对它的了解,我写了一个程序来替换我使用ArrayLinkedBlockingQueue的1P-1C用例。但是当我运行这个程序时,我发现使用disruptor的总时间比ArrayLinkedBlockingQueue还要长。我一定是做错了什么或测量错了,但我不确定我的程序中是什么。有谁有意见吗?;import com.lmax.disruptor.EventHandler;
im
在各种最终示例中,变量有时被声明为onEvent,有时则不被声明。public void onEvent(final ValueEvent entry, final long sequence, final boolean onEndOfBatch)public void onEvent(ValueEvent entry, long sequence, boolean onEndOfBatch)