Class foreign_storage::RefreshTimeCalculator

class RefreshTimeCalculator

Public Static Functions

int64_t getNextRefreshTime(const std::map<std::string, std::string, std::less<>> &foreign_table_options)
int64_t getCurrentTime()
void setMockCurrentTime(int64_t mock_current_time)
void resetMockCurrentTime()

Private Static Attributes

std::atomic<bool> should_use_mock_current_time_ = {false}
std::atomic<int64_t> mock_current_time_ = {0}