def _quit_duration_exceeded(self):
     message = "{} second(s) have elapsed.".format(
         self._central_handler_args.duration
     )
     print(message, flush=True)
     self._print_results()
     stop_monitor()
 def _quit_messages_exceeded(self):
     message = "Successfully parsed {} message(s).".format(
         self._central_handler_args.max_messages
     )
     print(message, flush=True)
     self._print_results()
     stop_monitor()