Deprecated
Use HttpClient methods for TCP level configurations. This class will be removed in version 1.1.0.
HttpClient#tcpConfiguration(Function) in 0.9.x.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv HttpClient |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public <A> TcpClient | attr(AttributeKey<A>
the key, A AttributeKey keythe value)AttributeKey valueOverrides reactor. |
| public TcpClient | bindAddress(Supplier<? extends SocketAddress>
A supplier of the address to bind to. bindAddressSupplier)Overrides reactor. |
| public TcpClient | channelGroup(ChannelGroup channelGroup)
Overrides reactor. ChannelGroup to hold all active connected channels.
|
| public TcpClientConfig | configuration()
Implements abstract reactor. TransportConfig.
|
| public Mono | connect()
Overrides reactor. ClientTransport and return a Mono of Connection.
|
| public TcpClient | doOnChannelInit(ChannelPipelineConfigurer
configure the channel pipeline while initializing the channel doOnChannelInit)Overrides reactor. |
| public TcpClient | doOnConnect(Consumer<? super TcpClientConfig>
a consumer observing connect events doOnConnect)Overrides reactor. ClientTransport is about to connect to the remote endpoint.
|
| public TcpClient | doOnConnected(Consumer<? super Connection>
a consumer observing connected events doOnConnected)Overrides reactor. Connection has been connected.
|
| public TcpClient | doOnDisconnected(Consumer<? super Connection>
a consumer observing disconnected events doOnDisconnected)Overrides reactor. Connection has been disconnected.
|
| protected TcpClient | duplicate()
Implements abstract reactor. Transport inheriting the current configuration.
|
| public TcpClient | handle(BiFunction<? super NettyInbound, ? super NettyOutbound, ? extends Publisher<Void>>
an IO handler that can dispose underlying connection when handler)Publisher terminates.Overrides reactor. |
| public TcpClient | host(String
the host to connect to host)Overrides reactor. |
| public TcpClient | metrics(boolean
true enables metrics collection; false disables it enable)Overrides reactor. globalRegistry.
|
| public TcpClient | metrics(boolean
if true enables the metrics on the enable, Supplier<? extends ChannelMetricsRecorder> Transport.a supplier for the recorder)ChannelMetricsRecorderOverrides reactor. Transport.
|
| public TcpClient | noProxy()
Overrides reactor. |
| public TcpClient | noSSL()
Overrides reactor. |
| public TcpClient | observe(ConnectionObserver
the observer)ConnectionObserver to be set or addOverrides reactor. ConnectionObserver to observe the connection state changes.
|
| public <O> TcpClient | option(ChannelOption<O>
the key, O ChannelOption keythe value)ChannelOption value or nullOverrides reactor. |
| public TcpClient | port(int
the port to connect to port)Overrides reactor. |
| public TcpClient | proxy(Consumer<? super ProxyProvider.
the proxy configuration callback proxyOptions)Overrides reactor. |
| public TcpClient | remoteAddress(Supplier<? extends SocketAddress>
A supplier of the address to connect to. remoteAddressSupplier)Overrides reactor. |
| public TcpClient | resolver(AddressResolverGroup<?>
the new resolver)AddressResolverGroupOverrides reactor. AddressResolverGroup.
|
| public TcpClient | runOn(EventLoopGroup
an eventLoopGroup to share eventLoopGroup)Overrides reactor. EventLoopGroup.
|
| public TcpClient | runOn(LoopResources
a channelResources)LoopResources accepting native runtime expectation and
returning an eventLoopGroupOverrides reactor. EventLoopGroup from the LoopResources container.
|
| public TcpClient | runOn(LoopResources
a new loop resources loopResources, boolean should prefer running on epoll, kqueue or similar instead of java NIO preferNative)Overrides reactor. EventLoopGroup from the LoopResources container.
|
| public TcpClient | |
| public TcpClient | secure(Consumer<? super SslProvider.
builder callback for further customization of SslContext. sslProviderBuilder)Overrides reactor. |
| public TcpClient | secure(SslProvider
The provider to set when configuring SSL sslProvider)Overrides reactor. SslProvider.
|
| public TcpClient | wiretap(boolean
specifies whether the wire logger configuration will be added to the pipeline enable)Overrides reactor. Transport category (logger),
DEBUG logger level and AdvancedByteBufFormat#HEX_DUMP for ByteBuf format,
which means both events and content will be logged and the content will be in hex format.
|
| public TcpClient | wiretap(String
the logger category category)Overrides reactor. DEBUG logger level and AdvancedByteBufFormat#HEX_DUMP for ByteBuf format,
which means both events and content will be logged and the content will be in hex format.
|
| public TcpClient | wiretap(String
the logger category category, LogLevel the logger level level)Overrides reactor. AdvancedByteBufFormat#HEX_DUMP for ByteBuf format,
which means both events and content will be logged and the content will be in hex format.
|