BufferAddressedEnvelope

cc.otavia.core.channel.udp.BufferAddressedEnvelope
abstract class BufferAddressedEnvelope[A <: SocketAddress, T <: BufferAddressedEnvelope[A, T]](message: Buffer, recipient: A, sender: Option[A]) extends DefaultAddressedEnvelope[Buffer, A]

Base class for addressed envelopes that have Buffer instances as messages.

Type parameters

A

The type of socket address used for recipient and sender.

T

The concrete sub-type of this class, used for implementing send.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

def replace(content: Buffer): T

Create a new addressed envelope instance, that has the same recipient and sender as this one, but the given content.

Create a new addressed envelope instance, that has the same recipient and sender as this one, but the given content.

Value parameters

content

The contents of the returned addressed envelope instance.

Attributes

Returns

An addressed envelope instance that has the same recipient and sender as this one, but the given content.

Inherited methods

override def content: Buffer

Returns the message wrapped by this envelope message.

Returns the message wrapped by this envelope message.

Attributes

Definition Classes
Inherited from:
DefaultAddressedEnvelope
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
Inherited from:
DefaultAddressedEnvelope