Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
  • The classes implemented are not meant to be subclassed. Therefore, they only consist of private and public methods and attributes.
  • In order to maintain the original API of the Notification Channel, the new implementation was created in a way so that the logic of the program would remain the same, while incorporating the new underlying technology. To achieve this, new classes were added in order to compartmentalize the different tasks of the program.
    • To send messages through AMQP using the Qpid Proton library, there needs to be classes that subclass a proton::messaging_handler. For this purpose, two new classes were created: Sender and Receiver, for the Supplier and the Consumer, respectively. This classes serve with the sole objective of creating the channel and sending strings through them. 
    • It was decided that to maintain a proper encapsulation and functionality of the program, Suppliers and Consumers will be the ones in charge to convert the structures to be sent into strings (or viceversa), while having a private instance of a Sender and a Receiver (respectively), which will serve only as a transport channel.
  • Según la documentación de ActiveMQ:

...