Class ManagedChannelUtil
- java.lang.Object
-
- io.opentelemetry.exporter.internal.grpc.ManagedChannelUtil
-
public final class ManagedChannelUtil extends java.lang.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 Summary
Fields Modifier and Type Field Description private static java.util.logging.Logger
logger
-
Constructor Summary
Constructors Modifier Constructor Description private
ManagedChannelUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CompletableResultCode
shutdownChannel(io.grpc.ManagedChannel managedChannel)
Shutdown the gRPC channel.static java.util.Map<java.lang.String,?>
toServiceConfig(java.lang.String serviceName, RetryPolicy retryPolicy)
Convert theRetryPolicy
into 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 theRetryPolicy
into 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.
-
-