new QueueMessageEncoder()
The interface for classes that represent a encoder which can be used to specify how the queue service encodes and decodes queue messages.
To specify how the queue service encodes and decodes queue messages, set queueService.messageEncoder
to object of built-in encoder types
TextBase64QueueMessageEncoder
, BinaryBase64QueueMessageEncoder
, TextXmlQueueMessageEncoder
,
or custom implementation of the QueueMessageEncoder.
Methods
-
decode( [textToBeDecoded])
-
Function to decode queue messages
Parameters:
Name Type Argument Description textToBeDecoded
string <optional>
The base64 string to be decoded.
Returns:
- Type
- any
-
encode( [input])
-
Function to encode queue messages.
Parameters:
Name Type Argument Description input
object <optional>
The target to be encoded.
Returns:
- Type
- string