◆ CollectionConfig()
| CollectionConfig::CollectionConfig | ( | fiftyoneDegreesCollectionConfig * | config | ) |
Construct a new instance of CollectionConfig which references an existing instance of the C structure.
- Parameters
-
- config - pointer to existing collection configuration structure
Member Function Documentation
◆ getCapacity()
uint32_t CollectionConfig::getCapacity ( ) Get the number of items the cache should store, 0 for no cache.
- Returns
- capacity value
◆ getConcurrency()
uint16_t CollectionConfig::getConcurrency ( ) Get the expected number of concurrent requests.
- Returns
- concurrency value
◆ getConfig()
fiftyoneDegreesCollectionConfig * CollectionConfig::getConfig ( ) Get a pointer to the underlying configuration structure.
- Returns
- C structure pointer
◆ getLoaded()
uint32_t CollectionConfig::getLoaded ( ) Get the number of items to load into memory from the start of the collection.
- Returns
- loaded value
◆ setCapacity()
void CollectionConfig::setCapacity ( uint32_t capacity ) Set the number of items the cache should store, 0 for no cache.
- Parameters
-
- capacity - to set
◆ setConcurrency()
void CollectionConfig::setConcurrency ( uint16_t concurrency ) Set the expected number of concurrent requests.
- Parameters
-
- concurrency - to set
◆ setLoaded()
void CollectionConfig::setLoaded ( uint32_t loaded ) Set the number of items to load into memory from the start of the collection.
- Parameters
-
- loaded - to set
The documentation for this class was generated from the following files:- CollectionConfig.hpp
- CollectionConfig.cpp
