def METHOD_NAME(self, database_account, **kwargs):
    with self.refresh_lock:
        # if refresh is not needed or refresh is already taking place, return
        if not self.refresh_needed:
            return
        try:
            self._refresh_endpoint_list_private(database_account, **kwargs)
        except Exception as e:
            raise e