def dequeue(self):
     msg = self.read()
     
     if msg:
         command = registry.get_command_for_message(msg)
         command.execute()
         return msg
Exemplo n.º 2
0
    def dequeue(self):
        msg = self.read()

        if msg:
            command = registry.get_command_for_message(msg)
            command.execute()
            return msg
Exemplo n.º 3
0
 def put(self, message):
     command = registry.get_command_for_message(message)
     command.execute()
Exemplo n.º 4
0
 def put(self, message):
     command = registry.get_command_for_message(message)
     command.execute()