Constructor and Description |
---|
MessageEnvelope(M message,
SocketAddress sender,
SocketAddress recipient)
Constructor for MessageEnvelope.
|
Modifier and Type | Method and Description |
---|---|
M |
content()
content.
|
void |
content(M content)
content.
|
Envelope<M> |
get() |
<A extends SocketAddress> |
recipient()
recipient.
|
<A extends SocketAddress> |
recipient(A recipient)
recipient.
|
<A extends SocketAddress> |
sender()
sender.
|
<A extends SocketAddress> |
sender(A sender)
sender.
|
String |
toString() |
public MessageEnvelope(M message, SocketAddress sender, SocketAddress recipient)
Constructor for MessageEnvelope.
message
- a M objectsender
- a SocketAddress
objectrecipient
- a SocketAddress
objectpublic M content()
content.
public void content(M content)
content.
public <A extends SocketAddress> A recipient()
recipient.
public <A extends SocketAddress> void recipient(A recipient)
recipient.
public <A extends SocketAddress> A sender()
sender.
public <A extends SocketAddress> void sender(A sender)
sender.
Copyright © 2016–2024. All rights reserved.