io.rsocket.ResponderRSocket Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rsocket-core Show documentation
Show all versions of rsocket-core Show documentation
Core functionality for the RSocket library
package io.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