blob: 38ec68c5279dee47aae7e41ce46900472b7bdaa8 [file] [log] [blame]
// Copyright 2021 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef MISSIVE_UTIL_BACKOFF_SETTINGS_H_
#define MISSIVE_UTIL_BACKOFF_SETTINGS_H_
#include <memory>
#include <brillo/backoff_entry.h>
namespace reporting {
// Returns a BackoffEntry object that defaults to initial 10 second delay and
// doubles the delay on every failure, to a maximum delay of 90 seconds.
// Caller owns the object and is responsible for resetting the delay on
// successful completion.
std::unique_ptr<::net::BackoffEntry> GetBackoffEntry();
} // namespace reporting
#endif // MISSIVE_UTIL_BACKOFF_SETTINGS_H_