org.zeromq

MessageTransport

trait MessageTransport[+Incoming, -Outgoing] extends Closeable

Generic message transport facility with an underlying ZeroMQ socket. Explicitly closing the transport closes the underlying socket.

Incoming

Incoming message type

Outgoing

Outgoing message type

Linear Supertypes
Closeable, AutoCloseable, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. MessageTransport
  2. Closeable
  3. AutoCloseable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def receive(block: Boolean = true): (Incoming, List[Array[Byte]])

    Receive a message through the transport.

    Receive a message through the transport.

    block

    Whether the operation should block (default: true)

    returns

    The incoming message and its routing path

  2. abstract def send(message: Outgoing, path: List[Array[Byte]] = Nil, block: Boolean = true): Unit

    Send a message through the transport.

    Send a message through the transport.

    message

    The message to transmit

    path

    Routing path for the message

    block

    Whether the operation should block (default: true)

  3. abstract def socket: Socket

    The socket underlying this transport.

Concrete 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[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def close(): Unit

    Definition Classes
    MessageTransport → Closeable → AutoCloseable
  9. final def eq(arg0: AnyRef): Boolean

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

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

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

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

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

    Definition Classes
    Any
  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. def tryReceive(): Option[(Incoming, List[Array[Byte]])]

    Perform a non-blocking receive operation and report the blocking error condition through an empty return value.

    Perform a non-blocking receive operation and report the blocking error condition through an empty return value.

    returns

    Some message if the receive was successful, none if it would block

  21. def trySend(message: Outgoing, path: List[Array[Byte]] = Nil): Boolean

    Perform a non-blocking send operation and report the blocking error condition through a boolean return value.

    Perform a non-blocking send operation and report the blocking error condition through a boolean return value.

    message

    The message to transmit

    path

    Routing path for the message

    returns

    true if the send was successful, false if it would block

  22. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Closeable

Inherited from AutoCloseable

Inherited from AnyRef

Inherited from Any

Ungrouped