use of com.alibaba.rsocket.upstream.UpstreamClusterChangedEvent in project alibaba-rsocket-broker by alibaba.
the class UpstreamForwardRSocket method handleUpstreamClusterChangedEvent.
public void handleUpstreamClusterChangedEvent(CloudEventImpl<?> cloudEvent) {
UpstreamClusterChangedEvent clusterChangedEvent = CloudEventSupport.unwrapData(cloudEvent, UpstreamClusterChangedEvent.class);
if (clusterChangedEvent != null) {
upstreamBrokerCluster.setUris(clusterChangedEvent.getUris());
log.info(RsocketErrorCode.message("RST-300202", "UpstreamBroker", String.join(",", clusterChangedEvent.getUris())));
}
}
Aggregations