Class OneByOneRequestStrategy$

  • All Implemented Interfaces:
    RequestStrategy,, scala.Equals, scala.Product, scala.Serializable

    public class OneByOneRequestStrategy$
    extends java.lang.Object
    implements RequestStrategy, scala.Product, scala.Serializable
    Requests one more element when remainingRequested is 0, i.e. max one element in flight.
    See Also:
    Serialized Form
    • Field Detail

      • MODULE$

        public static final OneByOneRequestStrategy$ MODULE$
        Static reference to the singleton instance of this Scala object.
    • Constructor Detail

      • OneByOneRequestStrategy$

        public OneByOneRequestStrategy$()
    • Method Detail

      • requestDemand

        public int requestDemand​(int remainingRequested)
        Description copied from interface: RequestStrategy
        Invoked by the ActorSubscriber after each incoming message to determine how many more elements to request from the stream.

        Specified by:
        requestDemand in interface RequestStrategy
        remainingRequested - current remaining number of elements that have been requested from upstream but not received yet
        demand of more elements from the stream, returning 0 means that no more elements will be requested for now
      • getInstance

        public OneByOneRequestStrategy$ getInstance()
        Java API: get the singleton instance
      • productPrefix

        public java.lang.String productPrefix()
        Specified by:
        productPrefix in interface scala.Product
      • productArity

        public int productArity()
        Specified by:
        productArity in interface scala.Product
      • productElement

        public java.lang.Object productElement​(int x$1)
        Specified by:
        productElement in interface scala.Product
      • productIterator

        public scala.collection.Iterator<java.lang.Object> productIterator()
        Specified by:
        productIterator in interface scala.Product
      • canEqual

        public boolean canEqual​(java.lang.Object x$1)
        Specified by:
        canEqual in interface scala.Equals
      • hashCode

        public int hashCode()
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        toString in class java.lang.Object