Class ManagedChannelUtil
java.lang.Object
io.opentelemetry.exporter.internal.grpc.ManagedChannelUtil
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CompletableResultCodeshutdownChannel(io.grpc.ManagedChannel managedChannel) Shutdown the gRPC channel.toServiceConfig(String serviceName, RetryPolicy retryPolicy) Convert theRetryPolicyinto a gRPC service config for theserviceName.
-
Field Details
-
logger
-
-
Constructor Details
-
ManagedChannelUtil
private ManagedChannelUtil()
-
-
Method Details
-
toServiceConfig
Convert theRetryPolicyinto a gRPC service config for theserviceName. The resulting map can be passed toManagedChannelBuilder.defaultServiceConfig(Map). -
shutdownChannel
Shutdown the gRPC channel.
-