All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.rsocket.ResponderRSocket Maven / Gradle / Ivy

There is a newer version: 1.1.4
Show newest version
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