|
DDS
ver. 2.0
|
TODO: Key-Value has to provide a possibility to properly react on the errors. If Key-Value was not saved by the Commander because of the version mismatch, we have to send back the information about it to the user, providing error code, error message, user record and server record. Based on this information user can properly construct a new record and save it back to server. More...
#include <KeyValueManager.h>
Public Types | |
| typedef std::shared_ptr< SKeyValueRecord > | ptr_t |
| typedef std::weak_ptr< SKeyValueRecord > | wptr_t |
| typedef std::multimap< uint64_t, SKeyValueRecord::ptr_t > | taskMap_t |
Public Member Functions | |
| SKeyValueRecord () | |
| ~SKeyValueRecord () | |
| EKeyUpdateResult | updateKeyValue (const protocol_api::SUpdateKeyCmd &_cmd, protocol_api::SUpdateKeyCmd &_serverCmd) |
| void | deleteKeyValue () |
| std::string | getKeyValueString () const |
Friends | |
| std::ostream & | operator<< (std::ostream &_stream, const SKeyValueRecord &_value) |
TODO: Key-Value has to provide a possibility to properly react on the errors. If Key-Value was not saved by the Commander because of the version mismatch, we have to send back the information about it to the user, providing error code, error message, user record and server record. Based on this information user can properly construct a new record and save it back to server.
Represents a single key-value record.
This object is thread safe, i.e. key-value updates and deletes can be called from different threads.
| typedef std::shared_ptr<SKeyValueRecord> dds::commander_cmd::SKeyValueRecord::ptr_t |
| typedef std::multimap<uint64_t, SKeyValueRecord::ptr_t> dds::commander_cmd::SKeyValueRecord::taskMap_t |
| typedef std::weak_ptr<SKeyValueRecord> dds::commander_cmd::SKeyValueRecord::wptr_t |
| SKeyValueRecord::SKeyValueRecord | ( | ) |
| SKeyValueRecord::~SKeyValueRecord | ( | ) |
| void SKeyValueRecord::deleteKeyValue | ( | ) |
| string SKeyValueRecord::getKeyValueString | ( | ) | const |
| EKeyUpdateResult SKeyValueRecord::updateKeyValue | ( | const protocol_api::SUpdateKeyCmd & | _cmd, |
| protocol_api::SUpdateKeyCmd & | _serverCmd | ||
| ) |
|
friend |
1.8.13