DefaultAddressedEnvelope

cc.otavia.core.channel.udp.DefaultAddressedEnvelope
class DefaultAddressedEnvelope[M, A <: SocketAddress](val message: M, val recipient: A, val sender: Option[A]) extends AddressedEnvelope[M, A]

The default AddressedEnvelope implementation.

Type parameters

A

the type of the address

M

the type of the wrapped message

Attributes

Graph
Supertypes
trait AddressedEnvelope[M, A]
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Concrete methods

override def content: M

Returns the message wrapped by this envelope message.

Returns the message wrapped by this envelope message.

Attributes

Definition Classes
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any

Concrete fields

final val message: M
final val recipient: A

Returns the address of the recipient of this message.

Returns the address of the recipient of this message.

Attributes

final val sender: Option[A]

Returns the address of the sender of this message.

Returns the address of the sender of this message.

Attributes