In our first example, we are going to implement a system to send items from generators of events to consumers of events. We're going to use the
SubmissionPublisher class to implement the communication between the producers and the consumers of events.
This class stores the information of every item. Each item contains three attributes:
msgattribute, to store a message in the
sourceattribute, to store the name of the class that produces the
dateattribute, to store the date when the
You have to declare the three attributes as private and include the methods to
set() the values of the attributes in the class.