public interface HttpClientConnection extends HttpConnection
| Modifier and Type | Field and Description |
|---|---|
static Handler<Long> |
DEFAULT_CONCURRENCY_CHANGE_HANDLER |
static Handler<Void> |
DEFAULT_EVICTION_HANDLER |
static Logger |
log |
| Modifier and Type | Method and Description |
|---|---|
io.netty.channel.Channel |
channel() |
io.netty.channel.ChannelHandlerContext |
channelHandlerContext() |
long |
concurrency() |
HttpClientConnection |
concurrencyChangeHandler(Handler<Long> handler)
Set a
handler called when the connection concurrency changes. |
void |
createStream(ContextInternal context,
Handler<AsyncResult<HttpClientStream>> handler)
Create an HTTP stream.
|
HttpClientConnection |
evictionHandler(Handler<Void> handler)
Set a
handler called when the connection should be evicted from a pool. |
ContextInternal |
getContext() |
boolean |
isValid() |
Object |
metric() |
close, close, closeHandler, exceptionHandler, getWindowSize, goAway, goAway, goAway, goAwayHandler, indicatedServerName, isSsl, localAddress, peerCertificateChain, ping, ping, pingHandler, remoteAddress, remoteSettings, remoteSettingsHandler, settings, setWindowSize, shutdown, shutdown, shutdown, shutdown, shutdownHandler, sslSession, updateSettings, updateSettingsstatic final Logger log
HttpClientConnection evictionHandler(Handler<Void> handler)
handler called when the connection should be evicted from a pool.handler - the handlerHttpClientConnection concurrencyChangeHandler(Handler<Long> handler)
handler called when the connection concurrency changes.
The handler is called with the new concurrency.handler - the handlerlong concurrency()
io.netty.channel.Channel channel()
io.netty.channel.ChannelHandlerContext channelHandlerContext()
ChannelHandlerContext of the handler managing the connectionvoid createStream(ContextInternal context, Handler<AsyncResult<HttpClientStream>> handler)
context - the stream contexthandler - the handler called when the stream is createdContextInternal getContext()
boolean isValid()
Object metric()
Copyright © 2021. All rights reserved.