Uses of Interface
com.google.cloud.spanner.spi.v1.ChannelEndpoint
Packages that use ChannelEndpoint
-
Uses of ChannelEndpoint in com.google.cloud.spanner.spi.v1
Methods in com.google.cloud.spanner.spi.v1 that return ChannelEndpointModifier and TypeMethodDescriptionChannelEndpointCache.defaultChannel()Returns the default channel endpoint.ChannelFinder.fillRoutingHint(CommitRequest.Builder reqBuilder) ChannelFinder.fillRoutingHint(CommitRequest.Builder reqBuilder, Predicate<String> excludedEndpoints) KeyRangeCache.fillRoutingHint(boolean preferLeader, KeyRangeCache.RangeMode rangeMode, DirectedReadOptions directedReadOptions, RoutingHint.Builder hintBuilder) Fills routing hint and returns the server to use, or null if no routing decision can be made.KeyRangeCache.fillRoutingHint(boolean preferLeader, KeyRangeCache.RangeMode rangeMode, DirectedReadOptions directedReadOptions, RoutingHint.Builder hintBuilder, Predicate<String> excludedEndpoints) ChannelFinder.findServer(BeginTransactionRequest.Builder reqBuilder) ChannelFinder.findServer(BeginTransactionRequest.Builder reqBuilder, Predicate<String> excludedEndpoints) ChannelFinder.findServer(ExecuteSqlRequest.Builder reqBuilder) ChannelFinder.findServer(ExecuteSqlRequest.Builder reqBuilder, boolean preferLeader) ChannelFinder.findServer(ExecuteSqlRequest.Builder reqBuilder, boolean preferLeader, Predicate<String> excludedEndpoints) ChannelFinder.findServer(ExecuteSqlRequest.Builder reqBuilder, Predicate<String> excludedEndpoints) ChannelFinder.findServer(ReadRequest.Builder reqBuilder) ChannelFinder.findServer(ReadRequest.Builder reqBuilder, boolean preferLeader) ChannelFinder.findServer(ReadRequest.Builder reqBuilder, boolean preferLeader, Predicate<String> excludedEndpoints) ChannelFinder.findServer(ReadRequest.Builder reqBuilder, Predicate<String> excludedEndpoints) Returns a cached channel for the given address, creating it if needed.ChannelEndpointCache.getIfPresent(String address) Returns a cached channel for the given address without creating it.PowerOfTwoReplicaSelector.select(List<ChannelEndpoint> candidates, Function<ChannelEndpoint, Double> scoreLookup) ReplicaSelector.select(List<ChannelEndpoint> candidates, Function<ChannelEndpoint, Double> scoreLookup) Selects a replica from the given list of candidates.Method parameters in com.google.cloud.spanner.spi.v1 with type arguments of type ChannelEndpointModifier and TypeMethodDescriptionPowerOfTwoReplicaSelector.select(List<ChannelEndpoint> candidates, Function<ChannelEndpoint, Double> scoreLookup) PowerOfTwoReplicaSelector.select(List<ChannelEndpoint> candidates, Function<ChannelEndpoint, Double> scoreLookup) ReplicaSelector.select(List<ChannelEndpoint> candidates, Function<ChannelEndpoint, Double> scoreLookup) Selects a replica from the given list of candidates.ReplicaSelector.select(List<ChannelEndpoint> candidates, Function<ChannelEndpoint, Double> scoreLookup) Selects a replica from the given list of candidates.