Class SerializedApplicationMessage
- java.lang.Object
-
- org.drasyl.pipeline.message.DefaultAddressedEnvelope<CompressedPublicKey,byte[]>
-
- org.drasyl.pipeline.serialization.SerializedApplicationMessage
-
- All Implemented Interfaces:
AddressedEnvelope<CompressedPublicKey,byte[]>
public class SerializedApplicationMessage extends DefaultAddressedEnvelope<CompressedPublicKey,byte[]>
A message from or to the application whose content has been serialized to a byte array so that the message can be delivered to remote nodes.
-
-
Constructor Summary
Constructors Constructor Description SerializedApplicationMessage(CompressedPublicKey sender, CompressedPublicKey recipient, String type, byte[] content)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
getType()
int
hashCode()
String
toString()
-
Methods inherited from class org.drasyl.pipeline.message.DefaultAddressedEnvelope
getContent, getRecipient, getSender
-
-
-
-
Constructor Detail
-
SerializedApplicationMessage
public SerializedApplicationMessage(CompressedPublicKey sender, CompressedPublicKey recipient, String type, byte[] content)
- Throws:
IllegalArgumentException
- ifsender
andrecipient
arenull
-
-
Method Detail
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classDefaultAddressedEnvelope<CompressedPublicKey,byte[]>
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classDefaultAddressedEnvelope<CompressedPublicKey,byte[]>
-
toString
public String toString()
- Overrides:
toString
in classDefaultAddressedEnvelope<CompressedPublicKey,byte[]>
-
getType
public String getType()
-
-