Top Description Fields Constructors Methods
reactor.netty.udp

pack-priv final Class UdpServerBind

extends UdpServer
Class Inheritance
Imports
io.netty.channel.ChannelOption, io.netty.util.NetUtil, reactor.core.publisher.Mono, reactor.netty.Connection, .ConnectionObserver, reactor.netty.resources.ConnectionProvider, java.net.InetSocketAddress, java.util.Collections

Provides the actual UdpServer instance.
Authors
Stephane Maldini, Violeta Georgieva

Field Summary

Modifier and TypeField and Description
pack-priv final UdpServerConfig
pack-priv static final int
DEFAULT_PORT

The default port for reactor-netty servers.

pack-priv static final UdpServerBind
Inherited from reactor.netty.udp.UdpServer:
log

Constructor Summary

AccessConstructor and Description
pack-priv
pack-priv

Method Summary

Modifier and TypeMethod and Description
public Mono<? extends Connection>
bind()

Implements abstract reactor.netty.udp.UdpServer.bind.

Binds the UdpServer and returns a Mono of Connection.
public UdpServerConfig
protected UdpServer
duplicate()

Implements abstract reactor.netty.transport.Transport.duplicate.

Return a new Transport inheriting the current configuration.
Inherited from reactor.netty.udp.UdpServer:
attrbindAddressbindNowbindNowcreatedoOnBinddoOnBounddoOnUnboundhandlehostmetricsmetricsobserveoptionportrunOnrunOnrunOnrunOnwarmupwiretapwiretapwiretap

Field Detail

configback to summary
pack-priv final UdpServerConfig config
DEFAULT_PORTback to summary
pack-priv static final int DEFAULT_PORT

The default port for reactor-netty servers. Defaults to 12012 but can be tuned via the PORT environment variable.

INSTANCEback to summary
pack-priv static final UdpServerBind INSTANCE

Constructor Detail

UdpServerBindback to summary
pack-priv UdpServerBind()
UdpServerBindback to summary
pack-priv UdpServerBind(UdpServerConfig config)

Method Detail

bindback to summary
public Mono<? extends Connection> bind()

Implements abstract reactor.netty.udp.UdpServer.bind.

Doc from reactor.netty.udp.UdpServer.bind.

Binds the UdpServer and returns a Mono of Connection. If Mono is cancelled, the underlying binding will be aborted. Once the Connection has been emitted and is not necessary anymore, disposing the main server loop must be done by the user via Connection#dispose().

Returns:Mono<? extends Connection>

a Mono of Connection

Annotations
@Override
configurationback to summary
public UdpServerConfig configuration()

Implements abstract reactor.netty.transport.Transport.configuration.

Doc from reactor.netty.transport.Transport.configuration.

Return a TransportConfig.

Returns:UdpServerConfig

a TransportConfig

Annotations
@Override
duplicateback to summary
protected UdpServer duplicate()

Implements abstract reactor.netty.transport.Transport.duplicate.

Doc from reactor.netty.transport.Transport.duplicate.

Return a new Transport inheriting the current configuration. This is a shallow copy.

Returns:UdpServer

a new Transport inheriting the current configuration

Annotations
@Override