Package io.dingodb.sdk.service.connector
Class VersionServiceConnector
java.lang.Object
io.dingodb.sdk.service.connector.ServiceConnector<VersionServiceGrpc.VersionServiceBlockingStub>
io.dingodb.sdk.service.connector.VersionServiceConnector
public class VersionServiceConnector
extends ServiceConnector<VersionServiceGrpc.VersionServiceBlockingStub>
-
Nested Class Summary
Nested classes/interfaces inherited from class io.dingodb.sdk.service.connector.ServiceConnector
ServiceConnector.Response<R> -
Field Summary
FieldsFields inherited from class io.dingodb.sdk.service.connector.ServiceConnector
locations, RETRY_TIMES, retryTimes, stubRef -
Constructor Summary
ConstructorsConstructorDescriptionVersionServiceConnector(String locations, int leaseTtl) VersionServiceConnector(Set<Location> locations, int leaseTtl) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()<R> ServiceConnector.Response<R>exec(Function<VersionServiceGrpc.VersionServiceBlockingStub, R> function, int retryTimes, Function<Integer, ErrorCodeUtils.Strategy> errChecker, Function<R, ServiceConnector.Response<R>> toResponse) longgetLease()newStub(io.grpc.ManagedChannel channel) protected io.grpc.ManagedChanneltransformToLeaderChannel(io.grpc.ManagedChannel channel) Methods inherited from class io.dingodb.sdk.service.connector.ServiceConnector
cleanResponse, exec, exec, exec, exec, exec, exec, getStub, newChannel, newChannel, refresh
-
Field Details
-
leaseTtl
public final int leaseTtl
-
-
Constructor Details
-
VersionServiceConnector
-
VersionServiceConnector
-
-
Method Details
-
close
public void close()- Overrides:
closein classServiceConnector<VersionServiceGrpc.VersionServiceBlockingStub>
-
getLease
public long getLease() -
exec
public <R> ServiceConnector.Response<R> exec(Function<VersionServiceGrpc.VersionServiceBlockingStub, R> function, int retryTimes, Function<Integer, ErrorCodeUtils.Strategy> errChecker, Function<R, ServiceConnector.Response<R>> toResponse) - Overrides:
execin classServiceConnector<VersionServiceGrpc.VersionServiceBlockingStub>
-
transformToLeaderChannel
protected io.grpc.ManagedChannel transformToLeaderChannel(io.grpc.ManagedChannel channel) - Specified by:
transformToLeaderChannelin classServiceConnector<VersionServiceGrpc.VersionServiceBlockingStub>
-
newStub
- Specified by:
newStubin classServiceConnector<VersionServiceGrpc.VersionServiceBlockingStub>
-
getCoordinatorServiceConnector
-