Class StreamingAsyncSubscriber<T>
- java.lang.Object
-
- org.apache.cxf.jaxrs.reactivestreams.server.AbstractSubscriber<T>
-
- org.apache.cxf.jaxrs.reactivestreams.server.StreamingAsyncSubscriber<T>
-
- All Implemented Interfaces:
org.reactivestreams.Subscriber<T>
- Direct Known Subclasses:
JsonStreamingAsyncSubscriber
public class StreamingAsyncSubscriber<T> extends AbstractSubscriber<T>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classStreamingAsyncSubscriber.TimeoutHandlerImpl
-
Constructor Summary
Constructors Constructor Description StreamingAsyncSubscriber(javax.ws.rs.container.AsyncResponse ar, String openTag, String closeTag, String sep)StreamingAsyncSubscriber(javax.ws.rs.container.AsyncResponse ar, String openTag, String closeTag, String sep, long pollTimeout)StreamingAsyncSubscriber(javax.ws.rs.container.AsyncResponse ar, String openTag, String closeTag, String sep, long pollTimeout, long asyncTimeout)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonComplete()voidonError(Throwable t)voidonNext(T bean)voidonSubscribe(org.reactivestreams.Subscription subscription)-
Methods inherited from class org.apache.cxf.jaxrs.reactivestreams.server.AbstractSubscriber
getAsyncResponse, getSubscription, request, requestAll, requestNext, resume, resume, resume
-
-
-
-
Constructor Detail
-
StreamingAsyncSubscriber
public StreamingAsyncSubscriber(javax.ws.rs.container.AsyncResponse ar, String openTag, String closeTag, String sep)
-
StreamingAsyncSubscriber
public StreamingAsyncSubscriber(javax.ws.rs.container.AsyncResponse ar, String openTag, String closeTag, String sep, long pollTimeout)
-
-
Method Detail
-
onSubscribe
public void onSubscribe(org.reactivestreams.Subscription subscription)
- Specified by:
onSubscribein interfaceorg.reactivestreams.Subscriber<T>- Overrides:
onSubscribein classAbstractSubscriber<T>
-
onComplete
public void onComplete()
- Specified by:
onCompletein interfaceorg.reactivestreams.Subscriber<T>- Overrides:
onCompletein classAbstractSubscriber<T>
-
onError
public void onError(Throwable t)
- Specified by:
onErrorin interfaceorg.reactivestreams.Subscriber<T>- Overrides:
onErrorin classAbstractSubscriber<T>
-
onNext
public void onNext(T bean)
- Specified by:
onNextin interfaceorg.reactivestreams.Subscriber<T>- Overrides:
onNextin classAbstractSubscriber<T>
-
-