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