Class BigtableChannelPrimer

java.lang.Object
com.google.cloud.bigtable.data.v2.stub.BigtableChannelPrimer
All Implemented Interfaces:
com.google.api.gax.grpc.ChannelPrimer

@InternalApi public class BigtableChannelPrimer extends Object implements com.google.api.gax.grpc.ChannelPrimer
A channel warmer that ensures that a Bigtable channel is ready to be used before being added to the active BigtableChannelPool.

This implementation is subject to change in the future, but currently it will prime the channel by sending a ReadRow request for a hardcoded, non-existent row key.

  • Method Details

    • primeChannel

      public void primeChannel(io.grpc.ManagedChannel managedChannel)
      Specified by:
      primeChannel in interface com.google.api.gax.grpc.ChannelPrimer
    • sendPrimeRequestsAsync

      public com.google.api.core.SettableApiFuture<PingAndWarmResponse> sendPrimeRequestsAsync(io.grpc.ManagedChannel managedChannel)