/** * Wraps an RSocket with {@link RSocketProxy} and {@link RSocketRpcService} * * @param name what you want your RSocket to be found as * @param source the raw socket to handle to wrap * @return a new NamedRSocketServiceWrapper instance */ public static NamedRSocketServiceWrapper wrap(String name, RSocket source) { return new NamedRSocketServiceWrapper(name, source); }
/** * 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)); }
/** * Wraps an RSocket with {@link RSocketProxy} and {@link RSocketRpcService} * * @param name what you want your RSocket to be found as * @param source the raw socket to handle to wrap * @return a new NamedRSocketServiceWrapper instance */ public static NamedRSocketServiceWrapper wrap(String name, RSocket source) { return new NamedRSocketServiceWrapper(name, source); }