public interface SocketAcceptor
RSocket is a full duplex protocol where a client and server are identical in terms of
both having the capability to initiate requests to their peer. This interface provides the
contract where a server accepts a new RSocket for sending requests to the peer and
returns a new RSocket that will be used to accept requests from it's peer.| Modifier and Type | Method and Description |
|---|---|
Mono<RSocket> |
accept(ConnectionSetupPayload setup,
RSocket sendingSocket)
Accepts a new
RSocket used to send requests to the peer and returns another RSocket that is used for accepting requests from the peer. |
Mono<RSocket> accept(ConnectionSetupPayload setup, RSocket sendingSocket)
RSocket used to send requests to the peer and returns another RSocket that is used for accepting requests from the peer.setup - Setup as sent by the client.sendingSocket - Socket used to send requests to the peer.SetupException - If the acceptor needs to reject the setup of this socket.