Package org.drasyl.pipeline.message
Interface AddressedEnvelope<A extends Address,M>
-
- Type Parameters:
A
- the type of the address
- All Known Implementing Classes:
AddressedByteBuf
,AddressedIntermediateEnvelope
,ApplicationMessage
,DefaultAddressedEnvelope
,SerializedApplicationMessage
public interface AddressedEnvelope<A extends Address,M>
A message with a sender address and a recipient address.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description M
getContent()
Returns the message wrapped by this envelope message.A
getRecipient()
Returns this message's recipient.A
getSender()
Returns this message's sender.
-
-
-
Method Detail
-
getSender
A getSender()
Returns this message's sender.- Returns:
- this message's sender.
-
getRecipient
A getRecipient()
Returns this message's recipient.- Returns:
- this message's recipient.
-
getContent
M getContent()
Returns the message wrapped by this envelope message.- Returns:
- the message wrapped by this envelope message.
-
-