public final class EmptySubscription extends java.lang.Object implements PublisherSource.Subscription
PublisherSource.Subscription implementation, which does not do anything.| Modifier and Type | Field and Description |
|---|---|
static EmptySubscription |
EMPTY_SUBSCRIPTION |
IGNORE_CANCEL| Constructor and Description |
|---|
EmptySubscription() |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Sends a hint to the producer of the associated asynchronous execution that the consumer related to this
Cancellable is not interested in the outcome of the execution. |
void |
request(long n)
Requests
n more items from the associated PublisherSource for the associated
PublisherSource.Subscriber. |
public static final EmptySubscription EMPTY_SUBSCRIPTION
public void request(long n)
PublisherSource.Subscriptionn more items from the associated PublisherSource for the associated
PublisherSource.Subscriber.
See Reactive Streams specifications for the rules about how and when this method will be invoked.
request in interface PublisherSource.Subscriptionn - Number of items to request.public void cancel()
CancellableCancellable is not interested in the outcome of the execution.cancel in interface Cancellable