toEnvelope

protected CommandEnvelope toEnvelope(Command message)

Packs the given message of type T into an envelope of type E.

Return

new envelope with the given message inside

Parameters

message

the message to pack