85.7. 线程池
请注意,通过执行以下操作将线程池添加到 Disruptor 端点中:
from("disruptor:stageName").thread(5).process(...)
from("disruptor:stageName").thread(5).process(...)
可以通过添加要与 Disruptor 结合使用的普通 BlockingQueue 提升,从而有效地使用 Disruptor 获得的性能提升部分。相反,建议使用 concurrentConsumers 选项直接配置在 Disruptor 端点上处理消息的线程数量。