Class

io.reactors.protocol.BackpressureProtocols.Backpressure

Link

Related Doc: package Backpressure

Permalink

case class Link[T](pressure: Channel[Int], buffer: EventBuffer[T], subscription: Subscription) extends Product with Serializable

Represents an established backpressure link.

Connection clients must manually release events from the associated event buffer and then send pressure tokens back to the producer. The event buffer has an available signal used to notify about event availability.

For convenience, every backpressure link can be converted into a Pump object, which automatically sends backpressure tokens when events are dequeued from the event buffer.

T

type of the events delivered on the backpressure channel

pressure

backpressure channel, used by consumers to signal the producers when additional events can be sent

buffer

event buffer that holds events ready to be delivered

subscription

resources associated with the link

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Link
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Link(pressure: Channel[Int], buffer: EventBuffer[T], subscription: Subscription)

    Permalink

    pressure

    backpressure channel, used by consumers to signal the producers when additional events can be sent

    buffer

    event buffer that holds events ready to be delivered

    subscription

    resources associated with the link

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from Link[T] to any2stringadd[Link[T]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (Link[T], B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from Link[T] to ArrowAssoc[Link[T]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. val buffer: EventBuffer[T]

    Permalink

    event buffer that holds events ready to be delivered

  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def ensuring(cond: (Link[T]) ⇒ Boolean, msg: ⇒ Any): Link[T]

    Permalink
    Implicit information
    This member is added by an implicit conversion from Link[T] to Ensuring[Link[T]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  10. def ensuring(cond: (Link[T]) ⇒ Boolean): Link[T]

    Permalink
    Implicit information
    This member is added by an implicit conversion from Link[T] to Ensuring[Link[T]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  11. def ensuring(cond: Boolean, msg: ⇒ Any): Link[T]

    Permalink
    Implicit information
    This member is added by an implicit conversion from Link[T] to Ensuring[Link[T]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. def ensuring(cond: Boolean): Link[T]

    Permalink
    Implicit information
    This member is added by an implicit conversion from Link[T] to Ensuring[Link[T]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  14. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from Link[T] to StringFormat[Link[T]] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  16. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  17. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  18. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  19. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. val pressure: Channel[Int]

    Permalink

    backpressure channel, used by consumers to signal the producers when additional events can be sent

  22. val subscription: Subscription

    Permalink

    resources associated with the link

  23. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  24. def toPump: protocol.Pump[T]

    Permalink

    Converts this link into a backpressure pump.

  25. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. def [B](y: B): (Link[T], B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from Link[T] to ArrowAssoc[Link[T]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from Link[T] to any2stringadd[Link[T]]

Inherited by implicit conversion StringFormat from Link[T] to StringFormat[Link[T]]

Inherited by implicit conversion Ensuring from Link[T] to Ensuring[Link[T]]

Inherited by implicit conversion ArrowAssoc from Link[T] to ArrowAssoc[Link[T]]

Ungrouped