Class ManagedChannelUtil
- java.lang.Object
-
- io.opentelemetry.exporter.internal.grpc.ManagedChannelUtil
-
public final class ManagedChannelUtil extends java.lang.ObjectUtilities 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 Summary
Fields Modifier and Type Field Description private static java.util.logging.Loggerlogger
-
Constructor Summary
Constructors Modifier Constructor Description privateManagedChannelUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CompletableResultCodeshutdownChannel(io.grpc.ManagedChannel managedChannel)Shutdown the gRPC channel.static java.util.Map<java.lang.String,?>toServiceConfig(java.lang.String serviceName, RetryPolicy retryPolicy)Convert theRetryPolicyinto a gRPC service config for theserviceName.
-
-
-
Method Detail
-
toServiceConfig
public static java.util.Map<java.lang.String,?> toServiceConfig(java.lang.String serviceName, RetryPolicy retryPolicy)Convert theRetryPolicyinto a gRPC service config for theserviceName. The resulting map can be passed toManagedChannelBuilder.defaultServiceConfig(Map).
-
shutdownChannel
public static CompletableResultCode shutdownChannel(io.grpc.ManagedChannel managedChannel)
Shutdown the gRPC channel.
-
-