2019-08-30 21:46:35 +02:00
|
|
|
/*
|
|
|
|
* IXExponentialBackoff.h
|
|
|
|
* Author: Benjamin Sergeant
|
|
|
|
* Copyright (c) 2017-2019 Machine Zone, Inc. All rights reserved.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <cstdint>
|
|
|
|
|
|
|
|
namespace ix
|
|
|
|
{
|
2021-03-23 16:28:40 +01:00
|
|
|
uint32_t calculateRetryWaitMilliseconds(uint32_t retryCount,
|
|
|
|
uint32_t maxWaitBetweenReconnectionRetries,
|
|
|
|
uint32_t minWaitBetweenReconnectionRetries);
|
2019-08-30 21:46:35 +02:00
|
|
|
} // namespace ix
|