use of com.alibaba.spring.boot.rsocket.broker.cluster.jsonrpc.JsonRpcResponse in project alibaba-rsocket-broker by alibaba.
the class RSocketBrokerManagerGossipImpl method makeJsonRpcCall.
public Mono<JsonRpcResponse> makeJsonRpcCall(@NotNull Member member, @NotNull String methodName, @Nullable Object params) {
String uuid = UUID.randomUUID().toString();
Message jsonRpcMessage = Message.builder().correlationId(uuid).header("jsonrpc", "2.0").data(new JsonRpcRequest(methodName, params, uuid)).build();
return monoCluster.flatMap(cluster -> cluster.requestResponse(member, jsonRpcMessage)).map(Message::data);
}
Aggregations