Class ManagedChannelUtil

java.lang.Object
io.opentelemetry.exporter.internal.grpc.ManagedChannelUtil

public final class ManagedChannelUtil extends Object
Utilities for working with gRPC channels.

This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.

  • Field Details

    • logger

      private static final Logger logger
  • Constructor Details

    • ManagedChannelUtil

      private ManagedChannelUtil()
  • Method Details

    • toServiceConfig

      public static Map<String,?> toServiceConfig(String serviceName, RetryPolicy retryPolicy)
      Convert the RetryPolicy into a gRPC service config for the serviceName. The resulting map can be passed to ManagedChannelBuilder.defaultServiceConfig(Map).
    • shutdownChannel

      public static CompletableResultCode shutdownChannel(io.grpc.ManagedChannel managedChannel)
      Shutdown the gRPC channel.