public class ConnectionManager extends Object
| Constructor and Description |
|---|
ConnectionManager(PoolConfiguration poolConfiguration) |
| Modifier and Type | Method and Description |
|---|---|
TargetChannel |
borrowTargetChannel(HttpRoute httpRoute,
SourceHandler sourceHandler,
Http2SourceHandler http2SourceHandler,
SenderConfiguration senderConfig,
BootstrapConfiguration bootstrapConfig,
io.netty.channel.EventLoopGroup clientEventGroup)
Gets the client target channel pool.
|
Http2ConnectionManager |
getHttp2ConnectionManager() |
void |
invalidateTargetChannel(TargetChannel targetChannel) |
void |
returnChannel(TargetChannel targetChannel) |
public ConnectionManager(PoolConfiguration poolConfiguration)
public TargetChannel borrowTargetChannel(HttpRoute httpRoute, SourceHandler sourceHandler, Http2SourceHandler http2SourceHandler, SenderConfiguration senderConfig, BootstrapConfiguration bootstrapConfig, io.netty.channel.EventLoopGroup clientEventGroup) throws Exception
httpRoute - Represents the endpoint addresssourceHandler - Represents the HTTP/1.x source handlerhttp2SourceHandler - Represents the HTTP/2 source handlersenderConfig - Represents the client configurationsbootstrapConfig - Represents the bootstrap info related to client connection creationclientEventGroup - Represents the eventloop group that the client channel should be bound toException - to notify any errors occur during retrieving the target channelpublic void returnChannel(TargetChannel targetChannel) throws Exception
Exceptionpublic void invalidateTargetChannel(TargetChannel targetChannel) throws Exception
Exceptionpublic Http2ConnectionManager getHttp2ConnectionManager()
Copyright © 2022 WSO2. All rights reserved.