@Internal public final class InternalNettyChannelBuilder extends Object
NettyChannelBuilder
accessor. This is intended for usage internal to the gRPC
team. If you *really* think you need to use this, contact the gRPC team first.Modifier and Type | Class and Description |
---|---|
static interface |
InternalNettyChannelBuilder.OverrideAuthorityChecker
Checks authority upon channel construction.
|
static interface |
InternalNettyChannelBuilder.ProtocolNegotiatorFactory
A class that provides a Netty handler to control protocol negotiation.
|
Modifier and Type | Method and Description |
---|---|
static ClientTransportFactory |
buildTransportFactory(NettyChannelBuilder builder) |
static void |
overrideAuthorityChecker(NettyChannelBuilder channelBuilder,
InternalNettyChannelBuilder.OverrideAuthorityChecker authorityChecker) |
static void |
setProtocolNegotiatorFactory(NettyChannelBuilder builder,
InternalNettyChannelBuilder.ProtocolNegotiatorFactory protocolNegotiator)
Sets the
InternalNettyChannelBuilder.ProtocolNegotiatorFactory to be used. |
static void |
setStatsEnabled(NettyChannelBuilder builder,
boolean value) |
static void |
setStatsRecordRealTimeMetrics(NettyChannelBuilder builder,
boolean value) |
static void |
setStatsRecordStartedRpcs(NettyChannelBuilder builder,
boolean value) |
static void |
setTracingEnabled(NettyChannelBuilder builder,
boolean value) |
public static void overrideAuthorityChecker(NettyChannelBuilder channelBuilder, InternalNettyChannelBuilder.OverrideAuthorityChecker authorityChecker)
public static void setProtocolNegotiatorFactory(NettyChannelBuilder builder, InternalNettyChannelBuilder.ProtocolNegotiatorFactory protocolNegotiator)
InternalNettyChannelBuilder.ProtocolNegotiatorFactory
to be used. Overrides any specified negotiation type
and SslContext
.public static void setStatsEnabled(NettyChannelBuilder builder, boolean value)
public static void setTracingEnabled(NettyChannelBuilder builder, boolean value)
public static void setStatsRecordStartedRpcs(NettyChannelBuilder builder, boolean value)
public static void setStatsRecordRealTimeMetrics(NettyChannelBuilder builder, boolean value)
public static ClientTransportFactory buildTransportFactory(NettyChannelBuilder builder)
Copyright © 2019. All rights reserved.