Class/Object

molecule.channel

NativeProducer

Related Docs: object NativeProducer | package channel

Permalink

abstract class NativeProducer[-A] extends AnyRef

A NativeProducer interfaces permits to produce messages in a blocking manner from a native thread. This interface is typically used to wrap a cooperative system-level output channel interface into an interface that can be manipulated easily from a native Java thread.

It is also common to wrap a Buffer channel of a sufficient large size inside this interface to produce messages asynchronously and in a non-blocking manner from a cooperative process. This works as long as the maximum number buffer size required in order to not block is guaranteed by the application protocol (i.e. request-ack).

A

the type of the messages carried by this channel.

See also

ConsumerInterface to receive messages from an external thread.

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

Instance Constructors

  1. new NativeProducer()

    Permalink

Abstract Value Members

  1. abstract def close(signal: Signal): Unit

    Permalink

    Close the channel.

    Close the channel.

    signal

    the signal indicating why the channel is closed

  2. abstract def isClosed: Option[Signal]

    Permalink

    Check if the channel is closed.

    Check if the channel is closed.

    returns

    Some signal if the channel is closed

  3. abstract def send(seg: Seg[A], sigOpt: Option[Signal]): Unit

    Permalink

    Send a segment accompanied by an optional termination signal.

    Send a segment accompanied by an optional termination signal.

    seg

    the segment

    sigOpt

    the optional termination signal

    Exceptions thrown

    SignalException if the channel is poisoned. The segment will be poisoned.

Concrete 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. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  15. def send(seg: Seg[A], signal: Signal): Unit

    Permalink

    Send the last segment.

    Send the last segment.

    signal

    the signal indicating why the channel is closed

    Exceptions thrown

    SignalException if the channel is poisoned. In this case, the message will be poisoned.

  16. def send(a: A, signal: Signal): Unit

    Permalink

    Send the last message.

    Send the last message.

    a

    the message

    signal

    the signal indicating why the channel is closed

    Exceptions thrown

    SignalException if the channel is poisoned. In this case, the message will be poisoned.

  17. def send(seg: Seg[A]): Unit

    Permalink

    Send a segment

    Send a segment

    seg

    the segment

    Exceptions thrown

    SignalException if the channel is poisoned. The message will be poisoned.

  18. def send(a: A): Unit

    Permalink

    Send a message

    Send a message

    a

    the message

    Exceptions thrown

    SignalException if the channel is poisoned. The message will be poisoned.

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

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

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

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped