Package io.servicetalk.concurrent
Interface PublisherSource.Subscription
- All Superinterfaces:
Cancellable
- All Known Implementing Classes:
ConcurrentSubscription
,DelayedSubscription
,ScalarValueSubscription
- Enclosing interface:
- PublisherSource<T>
A subscription to control the signals emitted from a
PublisherSource
to a PublisherSource.Subscriber
.
This is a replica of the APIs provided by
Reactive Streams and follows the
Reactive Streams specifications.
All implementations of this Subscription
adhere to the rules as specified for a Reactive Streams
Subscription
in
Section 3 of the specifications.
-
Field Summary
Fields inherited from interface io.servicetalk.concurrent.Cancellable
IGNORE_CANCEL
-
Method Summary
Modifier and TypeMethodDescriptionvoid
request
(long n) Requestsn
more items from the associatedPublisherSource
for the associatedPublisherSource.Subscriber
.Methods inherited from interface io.servicetalk.concurrent.Cancellable
cancel
-
Method Details
-
request
void request(long n) Requestsn
more items from the associatedPublisherSource
for the associatedPublisherSource.Subscriber
.See Reactive Streams specifications for the rules about how and when this method will be invoked.
- Parameters:
n
- Number of items to request.
-