1#if !defined(RESIP_INMEMORYREGISTRATIONDATABASE_HXX)
2#define RESIP_INMEMORYREGISTRATIONDATABASE_HXX
Trivial implementation of a persistence manager.
virtual void addAor(const Uri &aor, const ContactList &contacts)
virtual void removeAor(const Uri &aor)
virtual void getAors(UriList &container)
return all the AOR in the DB
virtual void getContacts(const Uri &aor, ContactList &container)
Condition mRecordUnlocked
Mutex mLockedRecordsMutex
database_map_t::iterator findNotExpired(const Uri &aor)
Find aor in mDatabase Before returning the iterator pointing to aor, delete all expired contacts.
std::set< Uri > mLockedRecords
virtual void unlockRecord(const Uri &aor)
virtual ~InMemoryRegistrationDatabase()
virtual void lockRecord(const Uri &aor)
virtual bool aorIsRegistered(const Uri &aor)
virtual update_status_t updateContact(const resip::Uri &aor, const ContactInstanceRecord &rec)
std::map< Uri, ContactList * > database_map_t
virtual void removeContact(const Uri &aor, const ContactInstanceRecord &rec)
Abstract interface of a datastore of all registered endpoints processed by DUM.
Represents the "SIP-URI" and "SIPS-URI" elements in the RFC 3261 grammar.
dcm! – add UnusedChecking(_enum) below;
std::mutex Mutex
A semaphore that can be locked by only one thread at a time.
std::condition_variable Condition
A condition variable that can be signaled or waited on, wraps POSIX/Windows implementations depending...
std::list< ContactInstanceRecord > ContactList