Object

molecule.channel

ManyToOne

Related Doc: package channel

Permalink

object ManyToOne

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.

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

Value Members

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

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

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

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

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

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

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

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

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

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

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

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

    Permalink

    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.

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  17. def toString(): String

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped