File tree 1 file changed +16
-1
lines changed
tck/src/main/java/org/reactivestreams/tck
1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -795,8 +795,23 @@ public interface SubscriberProbe<T> {
795
795
* make implement these calls.
796
796
*/
797
797
public interface SubscriberPuppet {
798
+
798
799
/**
799
- * Trigger {@code request(elements)} on your {@link Subscriber}
800
+ * Ensure that at least {@code elements} are eventually requested by your {@link Subscriber}, if it hasn't already
801
+ * requested that many elements.
802
+ * <p>
803
+ * This does not necessarily have to correlate 1:1 with a {@code Subscription.request(elements)} call, but the sum
804
+ * of the elements requested by your {@code Subscriber} must eventually be at least the the sum of the elements
805
+ * triggered to be requested by all the invocations of this method.
806
+ * <p>
807
+ * Additionally, subscribers are permitted to delay requesting elements until previous requests for elements have
808
+ * been fulfilled. For example, a subscriber that only requests one element at a time may fulfill the request made
809
+ * by this method by requesting one element {@code elements} times, waiting for each element to arrive before the
810
+ * next request is made.
811
+ * <p>
812
+ * Before sending any element to the subscriber, the TCK must wait for the subscriber to request that element, and
813
+ * must be prepared for the subscriber to only request one element at a time, it is not enough for the TCK to
814
+ * simply invoke this method before sending elements.
800
815
*/
801
816
void triggerRequest (long elements );
802
817
You can’t perform that action at this time.
0 commit comments