public TargetChannel borrowTargetChannel ( HttpRoute httpRoute , SourceHandler sourceHandler , Http2SourceHandler http2SourceHandler , SenderConfiguration senderConfig , BootstrapConfiguration bootstrapConfig , EventLoopGroup clientEventGroup ) throws Exception { GenericObjectPool trgHlrConnPool ; String trgHlrConnPoolId = httpRoute . toString ( ) + connectionManagerId ; if ( sourceHandler != null ) { ChannelHandlerContext inboundChannelContext = sourceHandler . getInboundChannelContext ( ) ; trgHlrConnPool = getTrgHlrPoolFromGlobalPoolWithSrcPool ( httpRoute , senderConfig , bootstrapConfig , trgHlrConnPoolId , inboundChannelContext . channel ( ) . eventLoop ( ) , inboundChannelContext . channel ( ) . getClass ( ) , sourceHandler . getTargetChannelPool ( ) ) ; } else if ( http2SourceHandler != null ) { ChannelHandlerContext inboundChannelContext = http2SourceHandler . getInboundChannelContext ( ) ; trgHlrConnPool = getTrgHlrPoolFromGlobalPoolWithSrcPool ( httpRoute , senderConfig , bootstrapConfig , trgHlrConnPoolId , inboundChannelContext . channel ( ) . eventLoop ( ) , inboundChannelContext . channel ( ) . getClass ( ) , http2SourceHandler . getTargetChannelPool ( ) ) ; } else { trgHlrConnPool = getTrgHlrPoolFromGlobalPool ( httpRoute , senderConfig , bootstrapConfig , clientEventGroup ) ; } return getTargetChannel ( sourceHandler , http2SourceHandler , trgHlrConnPool , trgHlrConnPoolId ) ; }
Gets the client target channel pool .