def _get_api_monitor(self, service): return service.get_monitor_thread(monitor_thread_wrapper=LoopingCall)
def _get_non_api_monitor(self, service): return service.get_monitor_thread( monitor_thread_wrapper=lambda target, kwargs: TimerService( 1, target, **kwargs))