public interface ClusterContextBuilder
限定符和类型 | 方法和说明 |
---|---|
ClusterContext |
build()
构建
|
ClusterContextBuilder |
setDiscardOwnMessage(boolean discardOwnMessage)
是否丢弃自身的消息,默认为true
|
ClusterContextBuilder |
setForceSyncAll(boolean forceSyncAll)
是否强制同步所有的ClusterChannel,默认为false,即多个Channel并行发送消息
|
ClusterContextBuilder |
setMessageDispatcher(ClusterMessageDispatcher<?> clusterMessageDispatcher)
设置自定义的消息分用逻辑
|
ClusterContextBuilder setDiscardOwnMessage(boolean discardOwnMessage)
ClusterContextBuilder setForceSyncAll(boolean forceSyncAll)
ClusterContextBuilder setMessageDispatcher(ClusterMessageDispatcher<?> clusterMessageDispatcher)
ClusterContext build()