Class QueuedSinglePublisher<T>

java.lang.Object
org.eclipse.jetty.reactive.client.internal.AbstractSinglePublisher<T>
org.eclipse.jetty.reactive.client.internal.QueuedSinglePublisher<T>
All Implemented Interfaces:
org.reactivestreams.Publisher<T>, org.reactivestreams.Subscription

public class QueuedSinglePublisher<T>
extends AbstractSinglePublisher<T>
  • Field Summary

    Fields 
    Modifier and Type Field Description
    static org.eclipse.jetty.reactive.client.internal.QueuedSinglePublisher.Terminal COMPLETE  
  • Constructor Summary

    Constructors 
    Constructor Description
    QueuedSinglePublisher()  
  • Method Summary

    Modifier and Type Method Description
    void complete()  
    boolean fail​(java.lang.Throwable failure)  
    void offer​(T item)  
    protected void onNext​(org.reactivestreams.Subscriber<? super T> subscriber, T item)  
    protected void onRequest​(org.reactivestreams.Subscriber<? super T> subscriber, long n)  

    Methods inherited from class org.eclipse.jetty.reactive.client.internal.AbstractSinglePublisher

    cancel, isCancelled, onFailure, request, subscribe, subscriber, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • COMPLETE

      public static final org.eclipse.jetty.reactive.client.internal.QueuedSinglePublisher.Terminal COMPLETE
  • Constructor Details

  • Method Details

    • offer

      public void offer​(T item)
    • complete

      public void complete()
    • fail

      public boolean fail​(java.lang.Throwable failure)
    • onRequest

      protected void onRequest​(org.reactivestreams.Subscriber<? super T> subscriber, long n)
      Specified by:
      onRequest in class AbstractSinglePublisher<T>
    • onNext

      protected void onNext​(org.reactivestreams.Subscriber<? super T> subscriber, T item)