Class NettyChannelBuilder
- java.lang.Object
-
- io.grpc.ManagedChannelBuilder<T>
-
- io.grpc.ForwardingChannelBuilder2<NettyChannelBuilder>
-
- io.grpc.netty.NettyChannelBuilder
-
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/1784") @CheckReturnValue public final class NettyChannelBuilder extends ForwardingChannelBuilder2<NettyChannelBuilder>
A builder to help simplify construction of channels using the Netty transport.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private class
NettyChannelBuilder.DefaultProtocolNegotiator
static class
NettyChannelBuilder.LocalSocketPicker
This class is meant to be overriden with a custom implementation ofNettyChannelBuilder.LocalSocketPicker.createSocketAddress(java.net.SocketAddress, io.grpc.Attributes)
.private class
NettyChannelBuilder.NettyChannelDefaultPortProvider
private class
NettyChannelBuilder.NettyChannelTransportFactoryBuilder
private static class
NettyChannelBuilder.NettyTransportFactory
Creates Netty transports.-
Nested classes/interfaces inherited from class io.grpc.ManagedChannelBuilder
ManagedChannelBuilder.InterceptorFactory
-
-
Field Summary
Fields Modifier and Type Field Description private static long
AS_LARGE_AS_INFINITE
private boolean
autoFlowControl
private io.netty.channel.ChannelFactory<? extends io.netty.channel.Channel>
channelFactory
private java.util.Map<io.netty.channel.ChannelOption<?>,java.lang.Object>
channelOptions
private static boolean
DEFAULT_AUTO_FLOW_CONTROL
private static io.netty.channel.ChannelFactory<? extends io.netty.channel.Channel>
DEFAULT_CHANNEL_FACTORY
private static ObjectPool<? extends io.netty.channel.EventLoopGroup>
DEFAULT_EVENT_LOOP_GROUP_POOL
static int
DEFAULT_FLOW_CONTROL_WINDOW
private ObjectPool<? extends io.netty.channel.EventLoopGroup>
eventLoopGroupPool
private int
flowControlWindow
private boolean
freezeProtocolNegotiatorFactory
private long
keepAliveTimeNanos
private long
keepAliveTimeoutNanos
private boolean
keepAliveWithoutCalls
private NettyChannelBuilder.LocalSocketPicker
localSocketPicker
private ManagedChannelImplBuilder
managedChannelImplBuilder
private int
maxHeaderListSize
private int
maxInboundMessageSize
private ProtocolNegotiator.ClientFactory
protocolNegotiatorFactory
private java.lang.Class<? extends java.net.SocketAddress>
transportSocketType
private TransportTracer.Factory
transportTracerFactory
private boolean
useGetForSafeMethods
If true, indicates that the transport may use the GET method for RPCs, and may include the request body in the query params.
-
Constructor Summary
Constructors Constructor Description NettyChannelBuilder(java.lang.String target)
NettyChannelBuilder(java.lang.String target, ChannelCredentials channelCreds, CallCredentials callCreds, ProtocolNegotiator.ClientFactory negotiator)
NettyChannelBuilder(java.net.SocketAddress address)
NettyChannelBuilder(java.net.SocketAddress address, ChannelCredentials channelCreds, CallCredentials callCreds, ProtocolNegotiator.ClientFactory negotiator)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description (package private) void
assertEventLoopAndChannelType()
(package private) ClientTransportFactory
buildTransportFactory()
NettyChannelBuilder
channelFactory(io.netty.channel.ChannelFactory<? extends io.netty.channel.Channel> channelFactory)
Specifies theChannelFactory
to createChannel
instances.NettyChannelBuilder
channelFactory(io.netty.channel.ChannelFactory<? extends io.netty.channel.Channel> channelFactory, java.lang.Class<? extends java.net.SocketAddress> transportSocketType)
Similar tochannelFactory(ChannelFactory)
above but allows the caller to specify the socket-type associated with the channelFactory.NettyChannelBuilder
channelType(java.lang.Class<? extends io.netty.channel.Channel> channelType)
Specifies the channel type to use, by default we useEpollSocketChannel
if available, otherwise usingNioSocketChannel
.NettyChannelBuilder
channelType(java.lang.Class<? extends io.netty.channel.Channel> channelType, java.lang.Class<? extends java.net.SocketAddress> transportSocketType)
Similar tochannelType(Class)
above but allows the caller to specify the socket-type associated with the channelType.(package private) static ProtocolNegotiator
createProtocolNegotiatorByType(NegotiationType negotiationType, io.netty.handler.ssl.SslContext sslContext, ObjectPool<? extends java.util.concurrent.Executor> executorPool)
protected ManagedChannelBuilder<?>
delegate()
Returns the delegatedManagedChannelBuilder
.(package private) NettyChannelBuilder
disableCheckAuthority()
(package private) NettyChannelBuilder
enableCheckAuthority()
NettyChannelBuilder
eventLoopGroup(io.netty.channel.EventLoopGroup eventLoopGroup)
Provides an EventGroupLoop to be used by the netty transport.(package private) NettyChannelBuilder
eventLoopGroupPool(ObjectPool<? extends io.netty.channel.EventLoopGroup> eventLoopGroupPool)
NettyChannelBuilder
flowControlWindow(int flowControlWindow)
Sets the flow control window in bytes.static NettyChannelBuilder
forAddress(java.lang.String host, int port)
Creates a new builder with the given host and port.static NettyChannelBuilder
forAddress(java.lang.String host, int port, ChannelCredentials creds)
Creates a new builder with the given host and port.static NettyChannelBuilder
forAddress(java.net.SocketAddress serverAddress)
Creates a new builder with the given server address.static NettyChannelBuilder
forAddress(java.net.SocketAddress serverAddress, ChannelCredentials creds)
Creates a new builder with the given server address.static NettyChannelBuilder
forTarget(java.lang.String target)
Creates a new builder with the given target string that will be resolved byNameResolver
.static NettyChannelBuilder
forTarget(java.lang.String target, ChannelCredentials creds)
Creates a new builder with the given target string that will be resolved byNameResolver
.private static java.lang.String
getAuthorityFromAddress(java.net.SocketAddress address)
(package private) int
getDefaultPort()
(package private) static java.util.Collection<java.lang.Class<? extends java.net.SocketAddress>>
getSupportedSocketAddressTypes()
NettyChannelBuilder
initialFlowControlWindow(int initialFlowControlWindow)
Sets the initial flow control window in bytes.NettyChannelBuilder
keepAliveTime(long keepAliveTime, java.util.concurrent.TimeUnit timeUnit)
Sets the time without read activity before sending a keepalive ping.NettyChannelBuilder
keepAliveTimeout(long keepAliveTimeout, java.util.concurrent.TimeUnit timeUnit)
Sets the time waiting for read activity after sending a keepalive ping.NettyChannelBuilder
keepAliveWithoutCalls(boolean enable)
Sets whether keepalive will be performed when there are no outstanding RPC on a connection.NettyChannelBuilder
localSocketPicker(NettyChannelBuilder.LocalSocketPicker localSocketPicker)
If non-null
, attempts to create connections bound to a local port.NettyChannelBuilder
maxHeaderListSize(int maxHeaderListSize)
Deprecated.UsemaxInboundMetadataSize(int)
insteadNettyChannelBuilder
maxInboundMessageSize(int max)
Sets the maximum message size allowed for a single gRPC frame.NettyChannelBuilder
maxInboundMetadataSize(int bytes)
Sets the maximum size of metadata allowed to be received.NettyChannelBuilder
negotiationType(NegotiationType type)
Sets the negotiation type for the HTTP/2 connection.(package private) void
protocolNegotiatorFactory(ProtocolNegotiator.ClientFactory protocolNegotiatorFactory)
(package private) void
setStatsEnabled(boolean value)
(package private) void
setStatsRecordFinishedRpcs(boolean value)
(package private) void
setStatsRecordRealTimeMetrics(boolean value)
(package private) void
setStatsRecordRetryMetrics(boolean value)
(package private) void
setStatsRecordStartedRpcs(boolean value)
(package private) void
setTracingEnabled(boolean value)
(package private) NettyChannelBuilder
setTransportTracerFactory(TransportTracer.Factory transportTracerFactory)
NettyChannelBuilder
sslContext(io.netty.handler.ssl.SslContext sslContext)
SSL/TLS context to use instead of the system default.NettyChannelBuilder
usePlaintext()
Equivalent to usingnegotiationType(NegotiationType)
withPLAINTEXT
.NettyChannelBuilder
useTransportSecurity()
Equivalent to usingnegotiationType(NegotiationType)
withTLS
.<T> NettyChannelBuilder
withOption(io.netty.channel.ChannelOption<T> option, T value)
Specifies a channel option.-
Methods inherited from class io.grpc.ForwardingChannelBuilder2
addMetricSink, addTransportFilter, build, compressorRegistry, decompressorRegistry, defaultLoadBalancingPolicy, defaultServiceConfig, directExecutor, disableRetry, disableServiceConfigLookUp, enableRetry, executor, idleTimeout, intercept, intercept, interceptWithTarget, maxHedgedAttempts, maxRetryAttempts, maxTraceEvents, nameResolverFactory, offloadExecutor, overrideAuthority, perRpcBufferLimit, proxyDetector, retryBufferSize, setBinaryLog, toString, userAgent
-
-
-
-
Field Detail
-
DEFAULT_FLOW_CONTROL_WINDOW
public static final int DEFAULT_FLOW_CONTROL_WINDOW
- See Also:
- Constant Field Values
-
DEFAULT_AUTO_FLOW_CONTROL
private static final boolean DEFAULT_AUTO_FLOW_CONTROL
-
AS_LARGE_AS_INFINITE
private static final long AS_LARGE_AS_INFINITE
-
DEFAULT_CHANNEL_FACTORY
private static final io.netty.channel.ChannelFactory<? extends io.netty.channel.Channel> DEFAULT_CHANNEL_FACTORY
-
DEFAULT_EVENT_LOOP_GROUP_POOL
private static final ObjectPool<? extends io.netty.channel.EventLoopGroup> DEFAULT_EVENT_LOOP_GROUP_POOL
-
managedChannelImplBuilder
private final ManagedChannelImplBuilder managedChannelImplBuilder
-
transportTracerFactory
private TransportTracer.Factory transportTracerFactory
-
channelOptions
private final java.util.Map<io.netty.channel.ChannelOption<?>,java.lang.Object> channelOptions
-
channelFactory
private io.netty.channel.ChannelFactory<? extends io.netty.channel.Channel> channelFactory
-
eventLoopGroupPool
private ObjectPool<? extends io.netty.channel.EventLoopGroup> eventLoopGroupPool
-
autoFlowControl
private boolean autoFlowControl
-
flowControlWindow
private int flowControlWindow
-
maxHeaderListSize
private int maxHeaderListSize
-
maxInboundMessageSize
private int maxInboundMessageSize
-
keepAliveTimeNanos
private long keepAliveTimeNanos
-
keepAliveTimeoutNanos
private long keepAliveTimeoutNanos
-
keepAliveWithoutCalls
private boolean keepAliveWithoutCalls
-
protocolNegotiatorFactory
private ProtocolNegotiator.ClientFactory protocolNegotiatorFactory
-
freezeProtocolNegotiatorFactory
private final boolean freezeProtocolNegotiatorFactory
-
localSocketPicker
private NettyChannelBuilder.LocalSocketPicker localSocketPicker
-
useGetForSafeMethods
private final boolean useGetForSafeMethods
If true, indicates that the transport may use the GET method for RPCs, and may include the request body in the query params.- See Also:
- Constant Field Values
-
transportSocketType
private java.lang.Class<? extends java.net.SocketAddress> transportSocketType
-
-
Constructor Detail
-
NettyChannelBuilder
NettyChannelBuilder(java.lang.String target)
-
NettyChannelBuilder
NettyChannelBuilder(java.lang.String target, ChannelCredentials channelCreds, CallCredentials callCreds, ProtocolNegotiator.ClientFactory negotiator)
-
NettyChannelBuilder
NettyChannelBuilder(java.net.SocketAddress address)
-
NettyChannelBuilder
NettyChannelBuilder(java.net.SocketAddress address, ChannelCredentials channelCreds, CallCredentials callCreds, ProtocolNegotiator.ClientFactory negotiator)
-
-
Method Detail
-
forAddress
public static NettyChannelBuilder forAddress(java.net.SocketAddress serverAddress)
Creates a new builder with the given server address. This factory method is primarily intended for using Netty Channel types other than SocketChannel.forAddress(String, int)
should generally be preferred over this method, since that API permits delaying DNS lookups and noticing changes to DNS. If an unresolved InetSocketAddress is passed in, then it will remain unresolved.
-
forAddress
public static NettyChannelBuilder forAddress(java.net.SocketAddress serverAddress, ChannelCredentials creds)
Creates a new builder with the given server address. This factory method is primarily intended for using Netty Channel types other than SocketChannel.forAddress(String, int, ChannelCredentials)
should generally be preferred over this method, since that API permits delaying DNS lookups and noticing changes to DNS. If an unresolved InetSocketAddress is passed in, then it will remain unresolved.
-
forAddress
public static NettyChannelBuilder forAddress(java.lang.String host, int port)
Creates a new builder with the given host and port.
-
forAddress
public static NettyChannelBuilder forAddress(java.lang.String host, int port, ChannelCredentials creds)
Creates a new builder with the given host and port.
-
forTarget
public static NettyChannelBuilder forTarget(java.lang.String target)
Creates a new builder with the given target string that will be resolved byNameResolver
.
-
forTarget
public static NettyChannelBuilder forTarget(java.lang.String target, ChannelCredentials creds)
Creates a new builder with the given target string that will be resolved byNameResolver
.
-
delegate
@Internal protected ManagedChannelBuilder<?> delegate()
Description copied from class:ForwardingChannelBuilder2
Returns the delegatedManagedChannelBuilder
.- Specified by:
delegate
in classForwardingChannelBuilder2<NettyChannelBuilder>
-
getAuthorityFromAddress
private static java.lang.String getAuthorityFromAddress(java.net.SocketAddress address)
-
channelType
@CanIgnoreReturnValue public NettyChannelBuilder channelType(java.lang.Class<? extends io.netty.channel.Channel> channelType)
Specifies the channel type to use, by default we useEpollSocketChannel
if available, otherwise usingNioSocketChannel
.You either use this or
channelFactory(io.netty.channel.ChannelFactory)
if yourChannel
implementation has no no-args constructor.It's an optional parameter. If the user has not provided an Channel type or ChannelFactory when the channel is built, the builder will use the default one which is static.
You must also provide corresponding
eventLoopGroup(EventLoopGroup)
. For example,NioSocketChannel
must useNioEventLoopGroup
, otherwise your application won't start.
-
channelType
@CanIgnoreReturnValue public NettyChannelBuilder channelType(java.lang.Class<? extends io.netty.channel.Channel> channelType, @Nullable java.lang.Class<? extends java.net.SocketAddress> transportSocketType)
Similar tochannelType(Class)
above but allows the caller to specify the socket-type associated with the channelType.- Parameters:
channelType
- the type ofChannel
to use.transportSocketType
- the associatedSocketAddress
type. Ifnull
, then no compatibility check is performed between channel transport and name-resolver addresses.
-
channelFactory
@CanIgnoreReturnValue public NettyChannelBuilder channelFactory(io.netty.channel.ChannelFactory<? extends io.netty.channel.Channel> channelFactory)
Specifies theChannelFactory
to createChannel
instances. This method is usually only used if the specificChannel
requires complex logic which requires additional information to create theChannel
. Otherwise, recommend to usechannelType(Class)
.It's an optional parameter. If the user has not provided an Channel type or ChannelFactory when the channel is built, the builder will use the default one which is static.
You must also provide corresponding
eventLoopGroup(EventLoopGroup)
. For example,NioSocketChannel
basedChannelFactory
must useNioEventLoopGroup
, otherwise your application won't start.
-
channelFactory
@CanIgnoreReturnValue public NettyChannelBuilder channelFactory(io.netty.channel.ChannelFactory<? extends io.netty.channel.Channel> channelFactory, @Nullable java.lang.Class<? extends java.net.SocketAddress> transportSocketType)
Similar tochannelFactory(ChannelFactory)
above but allows the caller to specify the socket-type associated with the channelFactory.- Parameters:
channelFactory
- theChannelFactory
to use.transportSocketType
- the associatedSocketAddress
type. Ifnull
, then no compatibility check is performed between channel transport and name-resolver addresses.
-
withOption
@CanIgnoreReturnValue public <T> NettyChannelBuilder withOption(io.netty.channel.ChannelOption<T> option, T value)
Specifies a channel option. As the underlying channel as well as network implementation may ignore this value applications should consider it a hint.
-
negotiationType
@CanIgnoreReturnValue public NettyChannelBuilder negotiationType(NegotiationType type)
Sets the negotiation type for the HTTP/2 connection.Default:
TLS
-
eventLoopGroup
@CanIgnoreReturnValue public NettyChannelBuilder eventLoopGroup(@Nullable io.netty.channel.EventLoopGroup eventLoopGroup)
Provides an EventGroupLoop to be used by the netty transport.It's an optional parameter. If the user has not provided an EventGroupLoop when the channel is built, the builder will use the default one which is static.
You must also provide corresponding
channelType(Class)
orchannelFactory(ChannelFactory)
corresponding to the givenEventLoopGroup
. For example,NioEventLoopGroup
requiresNioSocketChannel
The channel won't take ownership of the given EventLoopGroup. It's caller's responsibility to shut it down when it's desired.
-
eventLoopGroupPool
@CanIgnoreReturnValue NettyChannelBuilder eventLoopGroupPool(ObjectPool<? extends io.netty.channel.EventLoopGroup> eventLoopGroupPool)
-
sslContext
@CanIgnoreReturnValue public NettyChannelBuilder sslContext(io.netty.handler.ssl.SslContext sslContext)
SSL/TLS context to use instead of the system default. It must have been configured withGrpcSslContexts
, but options could have been overridden.
-
initialFlowControlWindow
@CanIgnoreReturnValue public NettyChannelBuilder initialFlowControlWindow(int initialFlowControlWindow)
Sets the initial flow control window in bytes. Setting initial flow control window enables auto flow control tuning using bandwidth-delay product algorithm. To disable auto flow control tuning, useflowControlWindow(int)
. By default, auto flow control is enabled with initial flow control window size ofDEFAULT_FLOW_CONTROL_WINDOW
.
-
flowControlWindow
@CanIgnoreReturnValue public NettyChannelBuilder flowControlWindow(int flowControlWindow)
Sets the flow control window in bytes. Setting flowControlWindow disables auto flow control tuning; useinitialFlowControlWindow(int)
to enable auto flow control tuning. If not called, the default value isDEFAULT_FLOW_CONTROL_WINDOW
) with auto flow control tuning.
-
maxHeaderListSize
@CanIgnoreReturnValue @Deprecated @InlineMe(replacement="this.maxInboundMetadataSize(maxHeaderListSize)") public NettyChannelBuilder maxHeaderListSize(int maxHeaderListSize)
Deprecated.UsemaxInboundMetadataSize(int)
insteadSets the maximum size of header list allowed to be received. This is cumulative size of the headers with some overhead, as defined for HTTP/2's SETTINGS_MAX_HEADER_LIST_SIZE. The default is 8 KiB.
-
maxInboundMetadataSize
@CanIgnoreReturnValue public NettyChannelBuilder maxInboundMetadataSize(int bytes)
Sets the maximum size of metadata allowed to be received. This is cumulative size of the entries with some overhead, as defined for HTTP/2's SETTINGS_MAX_HEADER_LIST_SIZE. The default is 8 KiB.- Overrides:
maxInboundMetadataSize
in classForwardingChannelBuilder2<NettyChannelBuilder>
- Parameters:
bytes
- the maximum size of received metadata- Returns:
- this
- Throws:
java.lang.IllegalArgumentException
- if bytes is non-positive- Since:
- 1.17.0
-
usePlaintext
@CanIgnoreReturnValue public NettyChannelBuilder usePlaintext()
Equivalent to usingnegotiationType(NegotiationType)
withPLAINTEXT
.- Overrides:
usePlaintext
in classForwardingChannelBuilder2<NettyChannelBuilder>
- Returns:
- this
-
useTransportSecurity
@CanIgnoreReturnValue public NettyChannelBuilder useTransportSecurity()
Equivalent to usingnegotiationType(NegotiationType)
withTLS
.- Overrides:
useTransportSecurity
in classForwardingChannelBuilder2<NettyChannelBuilder>
- Returns:
- this
-
keepAliveTime
@CanIgnoreReturnValue public NettyChannelBuilder keepAliveTime(long keepAliveTime, java.util.concurrent.TimeUnit timeUnit)
Sets the time without read activity before sending a keepalive ping. An unreasonably small value might be increased, andLong.MAX_VALUE
nano seconds or an unreasonably large value will disable keepalive. Defaults to infinite.Clients must receive permission from the service owner before enabling this option. Keepalives can increase the load on services and are commonly "invisible" making it hard to notice when they are causing excessive load. Clients are strongly encouraged to use only as small of a value as necessary.
- Overrides:
keepAliveTime
in classForwardingChannelBuilder2<NettyChannelBuilder>
- Since:
- 1.3.0
- See Also:
- gRFC A8 Client-side Keepalive
-
keepAliveTimeout
@CanIgnoreReturnValue public NettyChannelBuilder keepAliveTimeout(long keepAliveTimeout, java.util.concurrent.TimeUnit timeUnit)
Sets the time waiting for read activity after sending a keepalive ping. If the time expires without any read activity on the connection, the connection is considered dead. An unreasonably small value might be increased. Defaults to 20 seconds.This value should be at least multiple times the RTT to allow for lost packets.
- Overrides:
keepAliveTimeout
in classForwardingChannelBuilder2<NettyChannelBuilder>
- Since:
- 1.3.0
- See Also:
- gRFC A8 Client-side Keepalive
-
keepAliveWithoutCalls
@CanIgnoreReturnValue public NettyChannelBuilder keepAliveWithoutCalls(boolean enable)
Sets whether keepalive will be performed when there are no outstanding RPC on a connection. Defaults tofalse
.Clients must receive permission from the service owner before enabling this option. Keepalives on unused connections can easilly accidentally consume a considerable amount of bandwidth and CPU.
idleTimeout()
should generally be used instead of this option.- Overrides:
keepAliveWithoutCalls
in classForwardingChannelBuilder2<NettyChannelBuilder>
- Since:
- 1.3.0
- See Also:
ManagedChannelBuilder.keepAliveTime(long, TimeUnit)
, gRFC A8 Client-side Keepalive
-
localSocketPicker
@CanIgnoreReturnValue public NettyChannelBuilder localSocketPicker(@Nullable NettyChannelBuilder.LocalSocketPicker localSocketPicker)
If non-null
, attempts to create connections bound to a local port.
-
maxInboundMessageSize
@CanIgnoreReturnValue public NettyChannelBuilder maxInboundMessageSize(int max)
Sets the maximum message size allowed for a single gRPC frame. If an inbound messages larger than this limit is received it will not be processed and the RPC will fail with RESOURCE_EXHAUSTED.- Overrides:
maxInboundMessageSize
in classForwardingChannelBuilder2<NettyChannelBuilder>
- Parameters:
max
- the maximum number of bytes a single message can be.- Returns:
- this
-
buildTransportFactory
ClientTransportFactory buildTransportFactory()
-
assertEventLoopAndChannelType
void assertEventLoopAndChannelType()
-
getDefaultPort
int getDefaultPort()
-
createProtocolNegotiatorByType
static ProtocolNegotiator createProtocolNegotiatorByType(NegotiationType negotiationType, io.netty.handler.ssl.SslContext sslContext, ObjectPool<? extends java.util.concurrent.Executor> executorPool)
-
disableCheckAuthority
@CanIgnoreReturnValue NettyChannelBuilder disableCheckAuthority()
-
enableCheckAuthority
@CanIgnoreReturnValue NettyChannelBuilder enableCheckAuthority()
-
protocolNegotiatorFactory
void protocolNegotiatorFactory(ProtocolNegotiator.ClientFactory protocolNegotiatorFactory)
-
setTracingEnabled
void setTracingEnabled(boolean value)
-
setStatsEnabled
void setStatsEnabled(boolean value)
-
setStatsRecordStartedRpcs
void setStatsRecordStartedRpcs(boolean value)
-
setStatsRecordFinishedRpcs
void setStatsRecordFinishedRpcs(boolean value)
-
setStatsRecordRealTimeMetrics
void setStatsRecordRealTimeMetrics(boolean value)
-
setStatsRecordRetryMetrics
void setStatsRecordRetryMetrics(boolean value)
-
setTransportTracerFactory
@CanIgnoreReturnValue NettyChannelBuilder setTransportTracerFactory(TransportTracer.Factory transportTracerFactory)
-
getSupportedSocketAddressTypes
static java.util.Collection<java.lang.Class<? extends java.net.SocketAddress>> getSupportedSocketAddressTypes()
-
-