MongoDB  2.7.0
Public Member Functions | List of all members
mongo::Backoff Class Reference

Public Member Functions

 Backoff (int maxSleepMillis, int resetAfter)
 
void nextSleepMillis ()
 
int getNextSleepMillis (int lastSleepMillis, unsigned long long currTimeMillis, unsigned long long lastErrorTimeMillis) const
 testing-only function. More...
 

Member Function Documentation

int mongo::Backoff::getNextSleepMillis ( int  lastSleepMillis,
unsigned long long  currTimeMillis,
unsigned long long  lastErrorTimeMillis 
) const

testing-only function.

used in dbtests/basictests.cpp


The documentation for this class was generated from the following files: