#include <CachedFactory.h>
Public Member Functions | |
void | setRate (unsigned maxCreation, unsigned byTime) |
Protected Member Functions | |
RateLimitedCreation () | |
bool | canCreate () |
void | onCreate () |
void | onDestroy () |
const char * | name () |
Classes | |
struct | Exception |
This implementation will prevent from Creating more than maxCreation objects within byTime ms by throwing an exception. Could be usefull to detect prevent loads (http connection for instance). Use the setRate method to set the rate parameters. default is 10 objects in a second.
Definition at line 162 of file CachedFactory.h.