com.jauntsdn.rsocket.ResponderRSocket Maven / Gradle / Ivy
package com.jauntsdn.rsocket;
import org.reactivestreams.Publisher;
import reactor.core.publisher.Flux;
/**
* Extends the {@link RSocket} that allows an implementer to peek at the first request payload of a
* channel.
*/
public interface ResponderRSocket extends RSocket {
/**
* Implement this method to peak at the first payload of the incoming request stream without
* having to subscribe to Publish<Payload> payloads
*
* @param payload First payload in the stream - this is the same payload as the first payload in
* Publisher<Payload> payloads
* @param payloads Stream of request payloads.
* @return Stream of response payloads.
*/
default Flux requestChannel(Payload payload, Publisher payloads) {
return requestChannel(payloads);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy