public static PresenceAwareRSocket wrap( RSocket source, String destination, String group, PresenceNotifier presenceNotifier) { return new PresenceAwareRSocket(source, destination, group, presenceNotifier); }
/** * 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); }
@Override public Flux<Payload> requestChannel(Payload payload, Flux<Payload> publisher) { return super.requestChannel(publisher); } }
@Override public ProteusSocket destination(String destination, String group) { return PresenceAwareRSocket.wrap( unwrappedDestination(destination, group), destination, group, presenceNotifier); }
private WeightedReconnectingRSocket createWeightedReconnectingRSocket() { return WeightedReconnectingRSocket.newInstance( requestHandlingRSocket, destinationNameFactory, this::getSetupPayload, this::isDisposed, this::selectClientTransportSupplier, keepalive, tickPeriodSeconds, ackTimeoutSeconds, missedAcks, accessKey, accessToken, lowerQuantile, higherQuantile, inactivityFactor); }
@Override public Flux<Payload> requestStream(Payload payload) { return source.requestStream(wrap(payload)); }
/** * 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); }
@Override public ProteusSocket destination(String destination, String group) { return PresenceAwareRSocket.wrap( unwrappedDestination(destination, group), destination, group, presenceNotifier); }
public static PresenceAwareRSocket wrap( RSocket source, String destination, String group, PresenceNotifier presenceNotifier) { return new PresenceAwareRSocket(source, destination, group, presenceNotifier); }
private WeightedReconnectingRSocket createWeightedReconnectingRSocket() { return WeightedReconnectingRSocket.newInstance( requestHandlingRSocket, destinationNameFactory, this::getSetupPayload, this::isDisposed, this::selectClientTransportSupplier, keepalive, tickPeriodSeconds, ackTimeoutSeconds, missedAcks, accessKey, accessToken, lowerQuantile, higherQuantile, inactivityFactor); }
@Override public Mono<Void> metadataPush(Payload payload) { return source.metadataPush(wrap(payload)); }
/** * 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 NamedRSocketClientWrapper instance */ public static NamedRSocketClientWrapper wrap(String name, RSocket source) { Objects.requireNonNull(name); Objects.requireNonNull(source); return new NamedRSocketClientWrapper(name, source); }
@Override public ProteusSocket group(String group) { return PresenceAwareRSocket.wrap(unwrappedGroup(group), null, group, presenceNotifier); }
public static PresenceAwareRSocket wrap( RSocket source, String destination, String group, PresenceNotifier presenceNotifier) { return new PresenceAwareRSocket(source, destination, group, presenceNotifier); }
WeightedReconnectingRSocket createWeightedReconnectingRSocket() { return WeightedReconnectingRSocket.newInstance( requestHandlingRSocket, destinationNameFactory, this::getSetupPayload, this::isDisposed, this::selectClientTransportSupplier, keepalive, tickPeriodSeconds, ackTimeoutSeconds, missedAcks, accessKey, accessToken, lowerQuantile, higherQuantile, inactivityFactor); }
@Override public Mono<Void> fireAndForget(Payload payload) { return source.fireAndForget(wrap(payload)); }
@Override public ProteusSocket broadcast(String group) { return PresenceAwareRSocket.wrap(unwrappedBroadcast(group), null, group, presenceNotifier); }
@Override public Mono<Void> metadataPush(Payload payload) { return source.metadataPush(wrap(payload)); }
@Override public ProteusSocket destination(String destination, String group) { return PresenceAwareRSocket.wrap( unwrappedDestination(destination, group), destination, group, presenceNotifier); }