Top Description Methods
reactor.netty

public Interface DisposableServer

extends DisposableChannel
Known Direct Implementers
reactor.netty.transport.ServerTransport.DisposableBind
Imports
java.net.InetSocketAddress, .SocketAddress

Holds contextual information for the underlying server.
Authors
Stephane Maldini, Violeta Georgieva
Since
0.8

Method Summary

Modifier and TypeMethod and Description
public default SocketAddress
address()

Overrides default reactor.netty.DisposableChannel.address.

When on the server, returns the bind address, when on the client, returns the remote address.
public default String

Returns:

the host string, without reverse DNS lookup
host
()

Returns the server's host string.

public default String

Returns:

the path to the domain socket
path
()

Returns the server's path to the domain socket.

public default int

Returns:

The port the server is bound to.
port
()

Returns this server's port.

Inherited from reactor.netty.DisposableChannel:
channeldisposedisposeNowdisposeNowdisposeSubscriberisDisposedonDisposeonDispose

Method Detail

addressback to summary
public default SocketAddress address()

Overrides default reactor.netty.DisposableChannel.address.

Doc from reactor.netty.DisposableChannel.address.

When on the server, returns the bind address, when on the client, returns the remote address.

Returns:SocketAddress

SocketAddress

Annotations
@Override
hostback to summary
public default String host()

Returns the server's host string. That is, the hostname or in case the server was bound to a literal IP address, the IP string representation (rather than performing a reverse-DNS lookup).

Returns:String

the host string, without reverse DNS lookup

Exceptions
UnsupportedOperationException:
when Unix Domain Sockets
See Also
DisposableChannel#address(), InetSocketAddress#getHostString()
pathback to summary
public default String path()

Returns the server's path to the domain socket. Returns null in case it is not Unix Domain Sockets.

Returns:String

the path to the domain socket

Exceptions
UnsupportedOperationException:
when it is not Unix Domain Sockets
Since
1.0.0
portback to summary
public default int port()

Returns this server's port.

Returns:int

The port the server is bound to.

Exceptions
UnsupportedOperationException:
when Unix Domain Sockets