molecule.channel

ManyToOne

object ManyToOne extends AnyRef

Factory for multiple-producers, single-consumer cooperative channels

This channel is cooperative and bounded. After it has written a segment, a (producer) user-level thread becomes suspended when it writes its next segment until the previous segment has been entirely delivered to the (consumer) user-level reading on the input interface of this channel.

This channel can only be poisoned from the input side. In other words, any attempt to close an output channel interface associated to a many-to-one channel will be ignored.

Source
ManyToOne.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. ManyToOne
  2. AnyRef
  3. Any
Visibility
  1. Public
  2. All

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

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

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  8. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  11. final def getClass(): java.lang.Class[_]

    Definition Classes
    AnyRef → Any
  12. def hashCode(): Int

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

    Definition Classes
    Any
  14. def mk[A](maxSegmentSize: Int = 0)(implicit arg0: Message[A]): (IChan[A], OChanFactory[A])

    Create a many to one channel.

    Create a many to one channel.

    The channel may aggregate segments emitted concurrently by multiple producers into a single batch. The behavior depends on the maxSegmentSize passed as parameter to this factory.

    If maxSegmentSize is greater than 0, and the reader is slow, then the channel attempts to aggregate multiple segments into a single segment whose size cannot exceed maxSegmentSize.

    If maxSegmentSize is equal to 0, then the channel doesn't perform any aggregation and delivers segments one-by-one in the order in which they are produced.

    The maximum number of messages buffered in the channel is equal to N * 2 * MaxInputSegmentSize, where: - N is the number of concurrent producers - MaxInputSegmentSize is the maximum size of the segments emitted by producers (in principle, bounded by Platform.segmentSizeThreshold).

    maxSegmentSize

    If it is greater than 0, the parameter represents the maximum size of the aggregated segments that can be read from the input side of the channel. If it is equal to 0, the segments written to the channel will not be aggregated and read one by one.

    returns

    the input interfaces of the channel and a factory method for creating an individual output channel interface for each producer.

  15. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  16. final def notify(): Unit

    Definition Classes
    AnyRef
  17. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  18. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  19. def toString(): String

    Definition Classes
    AnyRef → Any
  20. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from AnyRef

Inherited from Any