public class ChannelPoolManagerFactoryImpl extends java.lang.Object implements ChannelPoolManagerFactory
ChannelPoolManagerImpl given a set of transport properties
ChannelPoolManagerKey.| Constructor and Description |
|---|
ChannelPoolManagerFactoryImpl(io.netty.channel.EventLoopGroup eventLoopGroup,
java.util.concurrent.ScheduledExecutorService scheduler,
boolean enableSSLSessionResumption,
boolean usePipelineV2,
int channelPoolWaiterTimeout,
int connectTimeout,
int sslHandShakeTimeout) |
| Modifier and Type | Method and Description |
|---|---|
ChannelPoolManager |
buildHttp2Stream(ChannelPoolManagerKey channelPoolManagerKey) |
ChannelPoolManager |
buildRest(ChannelPoolManagerKey channelPoolManagerKey) |
ChannelPoolManager |
buildStream(ChannelPoolManagerKey channelPoolManagerKey) |
void |
shutdown(com.linkedin.common.callback.Callback<com.linkedin.common.util.None> callback)
The standard
ChannelPoolManagerFactoryImpl is stateless, and doesn't need to do any operation at shutdown |
public ChannelPoolManagerFactoryImpl(io.netty.channel.EventLoopGroup eventLoopGroup,
java.util.concurrent.ScheduledExecutorService scheduler,
boolean enableSSLSessionResumption,
boolean usePipelineV2,
int channelPoolWaiterTimeout,
int connectTimeout,
int sslHandShakeTimeout)
eventLoopGroup - The EventLoopGroup; it is the caller's responsibility to shut
it downscheduler - An executor; it is the caller's responsibility to shut it downusePipelineV2 - build channel pool manager for the new Netty pipeline.enableSSLSessionResumption - Enable reuse of Ssl Session.usePipelineV2 - Use unified new code.public ChannelPoolManager buildRest(ChannelPoolManagerKey channelPoolManagerKey)
buildRest in interface ChannelPoolManagerFactorychannelPoolManagerKey - An object composed by all the transport client properties
to initialize the current clientpublic ChannelPoolManager buildStream(ChannelPoolManagerKey channelPoolManagerKey)
buildStream in interface ChannelPoolManagerFactorychannelPoolManagerKey - An object composed by all the transport client properties
to initialize the current clientpublic ChannelPoolManager buildHttp2Stream(ChannelPoolManagerKey channelPoolManagerKey)
buildHttp2Stream in interface ChannelPoolManagerFactorychannelPoolManagerKey - An object composed by all the transport client properties
to initialize the current clientpublic void shutdown(com.linkedin.common.callback.Callback<com.linkedin.common.util.None> callback)
ChannelPoolManagerFactoryImpl is stateless, and doesn't need to do any operation at shutdownshutdown in interface ChannelPoolManagerFactorycallback - called when the shutdown is completed, the callback is guaranteed to be called