use of com.alipay.sofa.jraft.rhea.cmd.pd.SetStoreInfoRequest in project sofa-jraft by sofastack.
the class MetadataRpcClient method internalUpdateStoreInfo.
private void internalUpdateStoreInfo(final long clusterId, final Store store, final CompletableFuture<Store> future, final int retriesLeft, final Errors lastCause) {
final RetryRunner retryRunner = retryCause -> internalUpdateStoreInfo(clusterId, store, future, retriesLeft - 1, retryCause);
final FailoverClosure<Store> closure = new FailoverClosureImpl<>(future, retriesLeft, retryRunner);
final SetStoreInfoRequest request = new SetStoreInfoRequest();
request.setClusterId(clusterId);
request.setStore(store);
this.pdRpcService.callPdServerWithRpc(request, closure, lastCause);
}
Aggregations