Package reactor.netty
Interface DisposableServer
- All Superinterfaces:
Disposable
,DisposableChannel
Holds contextual information for the underlying server.
- Since:
- 0.8
- Author:
- Stephane Maldini, Violeta Georgieva
-
Nested Class Summary
Nested classes/interfaces inherited from interface reactor.core.Disposable
Disposable.Composite, Disposable.Swap
-
Method Summary
Modifier and TypeMethodDescriptiondefault SocketAddress
address()
When on the server, returns the bind address, when on the client, returns the remote address.default String
host()
Returns the server's host string.default String
path()
Returns the server's path to the domain socket.default int
port()
Returns this server's port.Methods inherited from interface reactor.netty.DisposableChannel
channel, dispose, disposeNow, disposeNow, disposeSubscriber, isDisposed, onDispose, onDispose
-
Method Details
-
address
Description copied from interface:DisposableChannel
When on the server, returns the bind address, when on the client, returns the remote address.- Specified by:
address
in interfaceDisposableChannel
- Returns:
SocketAddress
-
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:
- the host string, without reverse DNS lookup
- Throws:
UnsupportedOperationException
- when Unix Domain Sockets- See Also:
-
path
Returns the server's path to the domain socket. Returnsnull
in case it is not Unix Domain Sockets.- Returns:
- the path to the domain socket
- Throws:
UnsupportedOperationException
- when it is not Unix Domain Sockets- Since:
- 1.0.0
-
port
default int port()Returns this server's port.- Returns:
- The port the server is bound to.
- Throws:
UnsupportedOperationException
- when Unix Domain Sockets
-