|
1 | 1 | package org.reactivestreams.spi;
|
2 | 2 |
|
3 | 3 | /**
|
4 |
| - * A Subscriber receives elements from a [[Publisher]] based on the [[Subscription]] it has. |
| 4 | + * A Subscriber receives elements from a {@link org.reactivestreams.spi.Publisher Publisher} based on the {@link org.reactivestreams.spi.Subscription Subscription} it has. |
5 | 5 | * The Publisher may supply elements as they become available, the Subscriber signals demand via
|
6 |
| - * [[Subscription#requestMore]] and elements from when supply and demand are both present. |
| 6 | + * {@link org.reactivestreams.spi.Subscription#requestMore(int) requestMore} and elements from when supply and demand are both present. |
7 | 7 | */
|
8 | 8 | public interface Subscriber<T> {
|
9 | 9 |
|
10 | 10 | /**
|
11 |
| - * The [[Publisher]] generates a [[Subscription]] upon [[Publisher#subscribe]] and passes |
| 11 | + * The {@link org.reactivestreams.spi.Publisher Publisher} generates a {@link org.reactivestreams.spi.Subscription Subscription} upon {@link org.reactivestreams.spi.Publisher#subscribe(org.reactivestreams.spi.Subscriber) subscribe} and passes |
12 | 12 | * it on to the Subscriber named there using this method. The Publisher may choose to reject
|
13 |
| - * the subscription request by calling [[#onError]] instead. |
| 13 | + * the subscription request by calling {@link #onError onError} instead. |
14 | 14 | *
|
15 | 15 | * @param subscription The subscription which connects this subscriber to its publisher.
|
16 | 16 | */
|
17 | 17 | public void onSubscribe(Subscription subscription);
|
18 | 18 |
|
19 | 19 | /**
|
20 |
| - * The [[Publisher]] calls this method to pass one element to this Subscriber. The element |
| 20 | + * The {@link org.reactivestreams.spi.Publisher Publisher} calls this method to pass one element to this Subscriber. The element |
21 | 21 | * must not be <code>null</code>. The Publisher must not call this method more often than
|
22 |
| - * the Subscriber has signaled demand for via the corresponding [[Subscription]]. |
| 22 | + * the Subscriber has signaled demand for via the corresponding {@link org.reactivestreams.spi.Subscription Subscription}. |
23 | 23 | *
|
24 | 24 | * @param element The element that is passed from publisher to subscriber.
|
25 | 25 | */
|
26 | 26 | public void onNext(T element);
|
27 | 27 |
|
28 | 28 | /**
|
29 |
| - * The [[Publisher]] calls this method in order to signal that it terminated normally. |
| 29 | + * The {@link org.reactivestreams.spi.Publisher Publisher} calls this method in order to signal that it terminated normally. |
30 | 30 | * No more elements will be forthcoming and none of the Subscriber’s methods will be
|
31 | 31 | * called hereafter.
|
32 | 32 | */
|
33 | 33 | public void onComplete();
|
34 | 34 |
|
35 | 35 | /**
|
36 |
| - * The [[Publisher]] calls this method to signal that the stream of elements has failed |
| 36 | + * The {@link org.reactivestreams.spi.Publisher Publisher} calls this method to signal that the stream of elements has failed |
37 | 37 | * and is being aborted. The Subscriber should abort its processing as soon as possible.
|
38 | 38 | * No more elements will be forthcoming and none of the Subscriber’s methods will be
|
39 | 39 | * called hereafter.
|
|
0 commit comments