/** * Adds an RSocket handler that will be located by name. This lets Proteus bridge raw RSocket * betweens services that don't use RSocketRpcService. It will route to a RSocket by specific * name, but it will give you a raw data so the implementor must deal with the incoming Payload. * * @param name the name of the RSocket * @param rSocket the RSocket to handle the requests * @return current Proteus builder instance */ public Proteus addNamedRSocket(String name, RSocket rSocket) { Objects.requireNonNull(name); Objects.requireNonNull(rSocket); return addService(NamedRSocketServiceWrapper.wrap(name, rSocket)); }
/** * Adds an RSocket handler that will be located by name. This lets Proteus bridge raw RSocket * betweens services that don't use RSocketRpcService. It will route to a RSocket by specific * name, but it will give you a raw data so the implementor must deal with the incoming Payload. * * @param name the name of the RSocket * @param rSocket the RSocket to handle the requests * @return current Proteus builder instance */ public Proteus addNamedRSocket(String name, RSocket rSocket) { Objects.requireNonNull(name); Objects.requireNonNull(rSocket); return addService(NamedRSocketServiceWrapper.wrap(name, rSocket)); }