| 1234567891011121314151617181920212223242526 |
- #include <GroupState.h>
- #include <GroupStateCache.h>
- #include <GroupStatePersistence.h>
- #ifndef _GROUP_STATE_STORE_H
- #define _GROUP_STATE_STORE_H
- class GroupStateStore {
- public:
- GroupStateStore(const size_t maxSize);
- GroupState* get(const GroupId& id);
- GroupState* set(const GroupId& id, const GroupState& state);
- void flush();
- private:
- GroupStateCache cache;
- GroupStatePersistence persistence;
- LinkedList<GroupId> evictedIds;
- void trackEviction();
- };
- #endif
|