Deprecated
Use HttpServer methods for TCP level configurations. This class will be removed in version 1.1.0.
HttpServer#tcpConfiguration(Function) in 0.9.x.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv HttpServer |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public <A> TcpServer | attr(AttributeKey<A>
the key, A AttributeKey keythe value)AttributeKey valueOverrides reactor. |
| public Mono | bind()
Overrides reactor. ServerTransport and returns a Mono of DisposableServer.
|
| public TcpServer | bindAddress(Supplier<? extends SocketAddress>
A supplier of the address to bind to. bindAddressSupplier)Overrides reactor. |
| public TcpServer | channelGroup(ChannelGroup channelGroup)
Overrides reactor. ChannelGroup to hold all active connected channels.
|
| public <A> TcpServer | childAttr(AttributeKey<A>
the attribute key key, A the attribute value - null to remove a key value)Overrides reactor. Channel connections.
|
| public TcpServer | childObserve(ConnectionObserver
the observer)ConnectionObserver additionOverrides reactor. ConnectionObserver for each remote connection.
|
| public <A> TcpServer | childOption(ChannelOption<A>
the option key key, A the option value - null to remove a key value)Overrides reactor. Channel connections.
|
| public TcpServerConfig | configuration()
Implements abstract reactor. TransportConfig.
|
| public TcpServer | doOnBind(Consumer<? super TcpServerConfig>
a consumer observing connected events doOnBind)Overrides reactor. ServerTransport is about to start listening for incoming traffic.
|
| public TcpServer | doOnBound(Consumer<? super DisposableServer>
a consumer observing connected events doOnBound)Overrides reactor. DisposableServer has been started.
|
| public TcpServer | doOnChannelInit(ChannelPipelineConfigurer
configure the channel pipeline while initializing the channel doOnChannelInit)Overrides reactor. |
| public TcpServer | doOnConnection(Consumer<? super Connection>
a consumer observing remote connections doOnConnection)Overrides reactor. Connection.
|
| public TcpServer | doOnUnbound(Consumer<? super DisposableServer>
a consumer observing unbound events doOnUnbound)Overrides reactor. DisposableServer has been shutdown.
|
| protected TcpServer | duplicate()
Implements abstract reactor. Transport inheriting the current configuration.
|
| public TcpServer | handle(BiFunction<? super NettyInbound, ? super NettyOutbound, ? extends Publisher<Void>>
an I/O handler that can dispose underlying connection when
handler)Publisher terminates.Overrides reactor. |
| public TcpServer | host(String
the host to bind to. host)Overrides reactor. |
| public TcpServer | metrics(boolean
true enables metrics collection; false disables it enable)Overrides reactor. globalRegistry.
|
| public TcpServer | metrics(boolean
if true enables the metrics on the enable, Supplier<? extends ChannelMetricsRecorder> Transport.a supplier for the recorder)ChannelMetricsRecorderOverrides reactor. Transport.
|
| public TcpServer | noSSL()
Overrides reactor. |
| public TcpServer | observe(ConnectionObserver
the observer)ConnectionObserver to be set or addOverrides reactor. ConnectionObserver to observe the connection state changes.
|
| public <O> TcpServer | option(ChannelOption<O>
the key, O ChannelOption keythe value)ChannelOption value or nullOverrides reactor. |
| public TcpServer | port(int
The port to bind to. port)Overrides reactor. |
| public TcpServer | runOn(EventLoopGroup
an eventLoopGroup to share eventLoopGroup)Overrides reactor. EventLoopGroup.
|
| public TcpServer | runOn(LoopResources
a channelResources)LoopResources accepting native runtime expectation and
returning an eventLoopGroupOverrides reactor. EventLoopGroup from the LoopResources container.
|
| public TcpServer | 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 TcpServer | secure(Consumer<? super SslProvider.
builder callback for further customization of SslContext. sslProviderBuilder)Overrides reactor. |
| public TcpServer | secure(SslProvider
The provider to set when configuring SSL sslProvider)Overrides reactor. SslProvider.
|
| public TcpServer | 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 TcpServer | 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 TcpServer | 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.
|