Class AbstractSinglePublisher<T>
- java.lang.Object
-
- org.eclipse.jetty.reactive.client.internal.AbstractSinglePublisher<T>
-
- Type Parameters:
T- the type of items emitted by this Publisher
- All Implemented Interfaces:
org.reactivestreams.Publisher<T>,org.reactivestreams.Subscription
- Direct Known Subclasses:
AbstractEventPublisher,AbstractSingleProcessor,QueuedSinglePublisher,StringContent
public abstract class AbstractSinglePublisher<T> extends Object implements org.reactivestreams.Publisher<T>, org.reactivestreams.Subscription
A Publisher that supports a single Subscriber.
-
-
Constructor Summary
Constructors Constructor Description AbstractSinglePublisher()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidcancel()protected booleanisCancelled()protected voidonFailure(Throwable failure)protected abstract voidonRequest(long n)voidrequest(long n)voidsubscribe(org.reactivestreams.Subscriber<? super T> subscriber)protected org.reactivestreams.Subscriber<? super T>subscriber()StringtoString()
-
-
-
Method Detail
-
subscribe
public void subscribe(org.reactivestreams.Subscriber<? super T> subscriber)
- Specified by:
subscribein interfaceorg.reactivestreams.Publisher<T>
-
subscriber
protected org.reactivestreams.Subscriber<? super T> subscriber()
-
request
public void request(long n)
- Specified by:
requestin interfaceorg.reactivestreams.Subscription
-
onRequest
protected abstract void onRequest(long n)
-
onFailure
protected void onFailure(Throwable failure)
-
cancel
public void cancel()
- Specified by:
cancelin interfaceorg.reactivestreams.Subscription
-
isCancelled
protected boolean isCancelled()
-
-