You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: api/src/main/java/org/reactivestreams/Subscriber.java
+10-10
Original file line number
Diff line number
Diff line change
@@ -3,35 +3,35 @@
3
3
/**
4
4
* Will receive call to {@link #onSubscribe(Subscription)} once after passing an instance of {@link Subscriber} to {@link Publisher#subscribe(Subscriber)}.
5
5
* <p>
6
-
* No further notifications will be received until {@link Subscription#request(int)} is called.
6
+
* No further notifications will be received until {@link Subscription#request(long)} is called.
7
7
* <p>
8
8
* After signaling demand:
9
9
* <ul>
10
-
* <li>One or more invocations of {@link #onNext(Object)} up to the maximum number defined by {@link Subscription#request(int)}</li>
10
+
* <li>One or more invocations of {@link #onNext(Object)} up to the maximum number defined by {@link Subscription#request(long)}</li>
11
11
* <li>Single invocation of {@link #onError(Throwable)} or {@link Subscriber#onComplete()} which signals a terminal state after which no further events will be sent.
12
12
* </ul>
13
13
* <p>
14
-
* Demand can be signaled via {@link Subscription#request(int)} whenever the {@link Subscriber} instance is capable of handling more.
14
+
* Demand can be signaled via {@link Subscription#request(long)} whenever the {@link Subscriber} instance is capable of handling more.
15
15
*
16
16
* @param <T> the Type of element signaled.
17
17
*/
18
18
publicinterfaceSubscriber<T> {
19
19
/**
20
20
* Invoked after calling {@link Publisher#subscribe(Subscriber)}.
21
21
* <p>
22
-
* No data will start flowing until {@link Subscription#request(int)} is invoked.
22
+
* No data will start flowing until {@link Subscription#request(long)} is invoked.
23
23
* <p>
24
-
* It is the responsibility of this {@link Subscriber} instance to call {@link Subscription#request(int)} whenever more data is wanted.
24
+
* It is the responsibility of this {@link Subscriber} instance to call {@link Subscription#request(long)} whenever more data is wanted.
25
25
* <p>
26
-
* The {@link Publisher} will send notifications only in response to {@link Subscription#request(int)}.
26
+
* The {@link Publisher} will send notifications only in response to {@link Subscription#request(long)}.
27
27
*
28
28
* @param s
29
-
* {@link Subscription} that allows requesting data via {@link Subscription#request(int)}
29
+
* {@link Subscription} that allows requesting data via {@link Subscription#request(long)}
30
30
*/
31
31
publicvoidonSubscribe(Subscriptions);
32
32
33
33
/**
34
-
* Data notification sent by the {@link Publisher} in response to requests to {@link Subscription#request(int)}.
34
+
* Data notification sent by the {@link Publisher} in response to requests to {@link Subscription#request(long)}.
35
35
*
36
36
* @param t the element signaled
37
37
*/
@@ -40,7 +40,7 @@ public interface Subscriber<T> {
40
40
/**
41
41
* Failed terminal state.
42
42
* <p>
43
-
* No further events will be sent even if {@link Subscription#request(int)} is invoked again.
43
+
* No further events will be sent even if {@link Subscription#request(long)} is invoked again.
44
44
*
45
45
* @param t the throwable signaled
46
46
*/
@@ -49,7 +49,7 @@ public interface Subscriber<T> {
49
49
/**
50
50
* Successful terminal state.
51
51
* <p>
52
-
* No further events will be sent even if {@link Subscription#request(int)} is invoked again.
52
+
* No further events will be sent even if {@link Subscription#request(long)} is invoked again.
0 commit comments