Package io.dingodb.sdk.service
Class CoordinatorChannelProvider
java.lang.Object
io.dingodb.sdk.service.CoordinatorChannelProvider
- All Implemented Interfaces:
ChannelProvider
-
Constructor Summary
ConstructorsConstructorDescriptionCoordinatorChannelProvider(Set<Location> locations, Function<GetCoordinatorMapResponse, Location> locationGetter) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.dingodb.sdk.service.ChannelProvider
after, before
-
Constructor Details
-
CoordinatorChannelProvider
public CoordinatorChannelProvider(Set<Location> locations, Function<GetCoordinatorMapResponse, Location> locationGetter)
-
-
Method Details
-
channel
public io.grpc.Channel channel()- Specified by:
channelin interfaceChannelProvider
-
refresh
public void refresh(io.grpc.Channel oldChannel, long trace) - Specified by:
refreshin interfaceChannelProvider
-