configure heartbeat ThreadPoolExecutor