|
RMQ - RabbitMQ C++ Library
|
Abstract class for message transformations. More...
#include <rmqp_messagetransformer.h>

Public Member Functions | |
| virtual rmqt::Result< bool > | transform (bsl::shared_ptr< bsl::vector< uint8_t > > &data, rmqt::Properties &props)=0 |
| Transform the data and properties of a message. More... | |
| virtual rmqt::Result | inverseTransform (bsl::shared_ptr< bsl::vector< uint8_t > > &data, rmqt::Properties &props)=0 |
| Inverse transform the data and properties of a message. More... | |
| virtual bsl::string | name () const =0 |
Abstract class for message transformations.
|
pure virtual |
Inverse transform the data and properties of a message.
This method should reverse the effects of the transform method. It should return an empty Result on success, or an error message on failure.
Implemented in BloombergLP::rmqa::CompressionTransformerImpl.
|
pure virtual |
Transform the data and properties of a message.
The transform method can modify the data and properties of a message (ideally in place). It should return true if the transformation was successful and should be reversed upon receipt of this message, false if the transformation was not applicable or should not be reversed, and an error message if the transformation failed due to an error.
Implemented in BloombergLP::rmqa::CompressionTransformerImpl.