public static class GrpcManagedChannelPool.ChannelKey extends Object
ManagedChannel
in the pool.public static GrpcManagedChannelPool.ChannelKey create(AlluxioConfiguration conf)
GrpcManagedChannelPool.ChannelKey
.conf
- the Alluxio configurationpublic GrpcManagedChannelPool.ChannelKey setAddress(SocketAddress address)
address
- destination address of the channelGrpcManagedChannelPool.ChannelKey
public GrpcManagedChannelPool.ChannelKey setKeepAliveTime(long keepAliveTime, TimeUnit timeUnit)
keepAliveTime
- keep alive time for the underlying channeltimeUnit
- time unit for the keepAliveTime parameterGrpcManagedChannelPool.ChannelKey
public GrpcManagedChannelPool.ChannelKey setKeepAliveTimeout(long keepAliveTimeout, TimeUnit timeUnit)
keepAliveTimeout
- keep alive timeout for the underlying channeltimeUnit
- time unit for the keepAliveTimeout parameterGrpcManagedChannelPool.ChannelKey
public GrpcManagedChannelPool.ChannelKey setMaxInboundMessageSize(int maxInboundMessageSize)
maxInboundMessageSize
- Max inbound message size for the underlying channelGrpcManagedChannelPool.ChannelKey
public GrpcManagedChannelPool.ChannelKey setFlowControlWindow(int flowControlWindow)
flowControlWindow
- flow control window value for the underlying channelGrpcManagedChannelPool.ChannelKey
public GrpcManagedChannelPool.ChannelKey setChannelType(Class<? extends io.netty.channel.Channel> channelType)
channelType
- channel type for the underlying channelGrpcManagedChannelPool.ChannelKey
public GrpcManagedChannelPool.ChannelKey setEventLoopGroup(io.netty.channel.EventLoopGroup eventLoopGroup)
eventLoopGroup
- event loop group for the underlying channelGrpcManagedChannelPool.ChannelKey
public GrpcManagedChannelPool.ChannelKey setPoolingStrategy(GrpcManagedChannelPool.PoolingStrategy strategy)
strategy
- the pooling strategyGrpcManagedChannelPool.ChannelKey
Copyright © 2023. All Rights Reserved.