T
- the type of eventpublic class SseEventSubscription<T> extends Object implements org.reactivestreams.Subscription
SseEventSubscription
represents a one-to-one life-cycle of a
Subscriber
subscribing to a SseEventPublisher
.Modifier and Type | Method and Description |
---|---|
void |
cancel()
Request the
SseEventPublisher to stop sending data and clean up
resources. |
void |
request(long n)
No events will be sent by a
SseEventPublisher until demand is
signaled via request(long) method. |
public void request(long n)
SseEventPublisher
until demand is
signaled via request(long)
method.request
in interface org.reactivestreams.Subscription
n
- the strictly positive number of elements to requests to the
SseEventPublisher
public void cancel()
SseEventPublisher
to stop sending data and clean up
resources.
Data may still be sent to meet previously signaled demand after calling
cancel.cancel
in interface org.reactivestreams.Subscription
Copyright © 2007-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.