use of com.alibaba.rsocket.upstream.UpstreamManagerImpl in project alibaba-rsocket-broker by alibaba.
the class RSocketBrokerClient method initUpstreamManager.
private void initUpstreamManager() {
this.upstreamManager = new UpstreamManagerImpl(rsocketRequesterSupport);
upstreamManager.add(new UpstreamCluster(null, "*", null, this.brokers));
try {
upstreamManager.init();
this.cloudEventsProcessor.addConsumer(new UpstreamClusterChangedEventConsumer(upstreamManager));
} catch (Exception e) {
e.printStackTrace();
}
}
Aggregations