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
Modifier and Type Method Description void
cancel()
protected boolean
isCancelled()
protected void
onFailure(org.reactivestreams.Subscriber<? super T> subscriber, Throwable failure)
protected abstract void
onRequest(org.reactivestreams.Subscriber<? super T> subscriber, long n)
void
request(long n)
void
subscribe(org.reactivestreams.Subscriber<? super T> subscriber)
protected org.reactivestreams.Subscriber<? super T>
subscriber()
String
toString()
-
Constructor Details
-
AbstractSinglePublisher
public AbstractSinglePublisher()
-
-
Method Details
-
subscribe
- Specified by:
subscribe
in interfaceorg.reactivestreams.Publisher<T>
-
subscriber
-
request
public void request(long n)- Specified by:
request
in interfaceorg.reactivestreams.Subscription
-
onRequest
-
onFailure
-
cancel
public void cancel()- Specified by:
cancel
in interfaceorg.reactivestreams.Subscription
-
isCancelled
protected boolean isCancelled() -
toString
-