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