fengjiachun / Jupiter

Jupiter是一款性能非常不错的, 轻量级的分布式服务框架

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

整合disruptor问题

xingguang2013 opened this issue · comments

看您的common包中有对disruptor的封装,但在实际代码中没有搜索到使用的地方,请问您会对此应用在相关模块中么

您好, 有使用到的, 不过默认不会使用到, 是基于SPI配置的

DisruptorExecutorFactory

上面的executorFactory为disruptor实现, 可以在DefaultProviderProcessor / DefaultConsumerProcessor中使用(基于SPI);

配置见这里(修改为org.jupiter.rpc.executor.DisruptorExecutorFactory即可):
org.jupiter.rpc.provider.processor.ProviderExecutorFactory

org.jupiter.rpc.consumer.processor.ConsumerExecutorFactory

您好,看到了,还是没有仔细阅读您的代码,谢谢您的回复。
看您的代码感觉有很多学习的地方,感谢