of
Creates a new instance of ExternalMessageEnvelope
from the ExternalMessage instance and the message transferred inside the ExternalMessage
such as a io.spine.sample.TaskCreated
event message.
This factory method provides an optimal performance of the ExternalMessageEnvelope
creation. It allows to avoid unpacking the original message from the ExternalMessage
instance.
Return
the new instance of external message envelope.
Parameters
external Message
the instance of ExternalMessage
to wrap into an envelope
original Message
the message instance, which was originally transferred inside the externalMessage
such as a io.spine.sample.TaskCreated
event message.