Represents an output message from a map handler.
// Simple messageconst msg = new map.Message(Buffer.from('hello'));// Message with routing keysconst routed = new map.Message(Buffer.from('data'), { keys: ['partition-1'], tags: ['output-a']}); Copy
// Simple messageconst msg = new map.Message(Buffer.from('hello'));// Message with routing keysconst routed = new map.Message(Buffer.from('data'), { keys: ['partition-1'], tags: ['output-a']});
Create a new map output message.
The message payload as a Buffer
Optional
Optional keys, tags, and metadata
Optional keys for routing
Optional tags for conditional forwarding
Optional user metadata
The message payload
Static
Create a drop message that will be discarded and not forwarded.
A message marked for dropping
Represents an output message from a map handler.
Example