public final class ChannelProvider extends Object
| Constructor and Description |
|---|
ChannelProvider(io.netty.bootstrap.Bootstrap bootstrap,
SSLHelper sslHelper,
ContextInternal context) |
| Modifier and Type | Method and Description |
|---|---|
String |
applicationProtocol() |
io.netty.util.concurrent.Future<io.netty.channel.Channel> |
connect(SocketAddress remoteAddress,
SocketAddress peerAddress,
String serverName,
boolean ssl) |
ChannelProvider |
handler(Handler<io.netty.channel.Channel> handler)
Set a handler called when the channel has been established.
|
ChannelProvider |
proxyOptions(ProxyOptions proxyOptions)
Set the proxy options to use.
|
public ChannelProvider(io.netty.bootstrap.Bootstrap bootstrap,
SSLHelper sslHelper,
ContextInternal context)
public ChannelProvider proxyOptions(ProxyOptions proxyOptions)
proxyOptions - the proxy options to usepublic ChannelProvider handler(Handler<io.netty.channel.Channel> handler)
handler - the channel handlerpublic String applicationProtocol()
public io.netty.util.concurrent.Future<io.netty.channel.Channel> connect(SocketAddress remoteAddress, SocketAddress peerAddress, String serverName, boolean ssl)
Copyright © 2021. All rights reserved.