/** * 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); }
/** * 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); }