Class SseEventSubscription<T>
- java.lang.Object
-
- org.glassfish.jersey.microprofile.restclient.SseEventSubscription<T>
-
- Type Parameters:
T- the type of event
- All Implemented Interfaces:
org.reactivestreams.Subscription
public class SseEventSubscription<T> extends Object implements org.reactivestreams.Subscription
ASseEventSubscriptionrepresents a one-to-one life-cycle of aSubscribersubscribing to aSseEventPublisher.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcancel()Request theSseEventPublisherto stop sending data and clean up resources.voidrequest(long n)No events will be sent by aSseEventPublisheruntil demand is signaled viarequest(long)method.
-
-
-
Method Detail
-
request
public void request(long n)
No events will be sent by aSseEventPublisheruntil demand is signaled viarequest(long)method.- Specified by:
requestin interfaceorg.reactivestreams.Subscription- Parameters:
n- the strictly positive number of elements to requests to theSseEventPublisher
-
cancel
public void cancel()
Request theSseEventPublisherto stop sending data and clean up resources. Data may still be sent to meet previously signaled demand after calling cancel.- Specified by:
cancelin interfaceorg.reactivestreams.Subscription
-
-