RMQ - RabbitMQ C++ Library
Public Member Functions | List of all members
BloombergLP::rmqp::MessageTransformer Class Referenceabstract

Abstract class for message transformations. More...

#include <rmqp_messagetransformer.h>

Inheritance diagram for BloombergLP::rmqp::MessageTransformer:
Inheritance graph
[legend]

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
 

Detailed Description

Abstract class for message transformations.

Member Function Documentation

◆ inverseTransform()

virtual rmqt::Result BloombergLP::rmqp::MessageTransformer::inverseTransform ( bsl::shared_ptr< bsl::vector< uint8_t > > &  data,
rmqt::Properties props 
)
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.

◆ transform()

virtual rmqt::Result< bool > BloombergLP::rmqp::MessageTransformer::transform ( bsl::shared_ptr< bsl::vector< uint8_t > > &  data,
rmqt::Properties props 
)
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.


The documentation for this class was generated from the following file: