Class IChangePool
Defined in File IChangePool.h
Class Documentation
-
class IChangePool
An interface for classes responsible of cache changes allocation management.
Public Functions
-
virtual ~IChangePool() = default
-
virtual bool reserve_cache(CacheChange_t *&cache_change) = 0
Get a new cache change from the pool.
- Parameters
cache_change – [out] Pointer to the new cache change.
- Returns
whether the operation succeeded or not
- Pre
cache_change
isnullptr
- Post
cache_change
is not nullptr*cache_change
equalsCacheChange_t()
except for the contents ofserializedPayload
-
virtual bool release_cache(CacheChange_t *cache_change) = 0
Return a cache change to the pool.
- Parameters
cache_change – [in] Pointer to the cache change to release.
- Returns
whether the operation succeeded or not
- Pre
cache_change
is notnullptr
cache_change
points to a cache change obtained from a call tothis->reserve_cache
-
virtual ~IChangePool() = default