InMemoryCacheManager
In memory cache manager
Events are stored in eventHashMap in memory only
Open class that can be extended and add the logic for storing events in disk
Keep events in memory and disk synced all the time, in case of crash, events will not be lost
add, addAll, remove, removeAll, updateEventStatus, updateEventStatusAll are annotated with CallSuper, Any class extending InMemoryCacheManager for disk caching logic, need to write events in memory as well
Inheritors
Functions
Link copied to clipboard
Get count of events in memory based on the status
Link copied to clipboard
Get size of events in memory in bytes based on the status
Link copied to clipboard
Fetch events from the disk
Link copied to clipboard
Fetch in memory events and push all the events to disk
Link copied to clipboard
Update status for the event to the memory
Link copied to clipboard
Update status for the list of events to the memory