def METHOD_NAME(self):
    while True:
        message = self.in_queue.get()
        if message == RESET:
            self.reset()
        elif message == EXIT:
            return
        else:
            index, transaction = message
            self.results_queue.put((index, self.validate(transaction)))