Service that allows an asynchronous call to be changed to a synchronous one. More...
Public Member Functions | |
| SyncProxyService () | |
| Ctor. | |
| virtual | ~SyncProxyService () |
| Dtor. | |
| virtual bool | startup (MessageDispatcher *dispatcher) |
| startup | |
| virtual bool | init (const std::string &a_basePath) |
| init | |
| virtual const std::string & | name () const |
| name | |
| virtual bool | shutdown () |
| shutdown | |
| virtual void | onMessage (const void *pSender, Tonido::Data::Message::SharedPtr &args) |
| onMessage | |
| boost::shared_ptr< SyncProxyToken > | SyncProxyMessage (Tonido::Data::Message::SharedPtr &message) |
| SyncProxyMessage. | |
| boost::shared_ptr< SyncProxyToken > | SyncNetProxyMessage (Tonido::Data::Message::SharedPtr &message, Tonido::Data::Message::SharedPtr &pNetworkMessage) |
| SyncNetworkProxyMessage. | |
| void | cancelSync (const Poco::UUID &a_UUID) |
| Cancels the SyncProxy Token. | |
Service that allows an asynchronous call to be changed to a synchronous one.
This allows other services to perform a synchronous message request/response
---------------------- Operation: Defs::Sync::MO_SYNC Arguments: [Defs::Sync::MS_SYNC][Defs::Sync::S_SYNC_TOKEN] = UUID
This is the token that identifies the waiter event. Needs to be available for a sucessful call. ----------------------
| Tonido::System::SyncProxyService::SyncProxyService | ( | ) |
Ctor.
Details if needed
| Tonido::System::SyncProxyService::~SyncProxyService | ( | ) | [virtual] |
Dtor.
Details if needed
| bool Tonido::System::SyncProxyService::init | ( | const std::string & | a_basePath | ) | [virtual] |
| const std::string & Tonido::System::SyncProxyService::name | ( | ) | const [virtual] |
| void Tonido::System::SyncProxyService::onMessage | ( | const void * | pSender, |
| Tonido::Data::Message::SharedPtr & | args | ||
| ) | [virtual] |
| bool Tonido::System::SyncProxyService::shutdown | ( | ) | [virtual] |
| bool Tonido::System::SyncProxyService::startup | ( | MessageDispatcher * | dispatcher | ) | [virtual] |
| boost::shared_ptr< SyncProxyToken > Tonido::System::SyncProxyService::SyncNetProxyMessage | ( | Tonido::Data::Message::SharedPtr & | message, |
| Tonido::Data::Message::SharedPtr & | pNetworkMessage | ||
| ) |
SyncNetworkProxyMessage.
Sends the message on behalf of the sender to the network and notifies sender when response is received.
| SyncProxyToken::SharedPtr Tonido::System::SyncProxyService::SyncProxyMessage | ( | Tonido::Data::Message::SharedPtr & | message | ) |
SyncProxyMessage.
Sends the message on behalf of the sender and notifies sender when response is received.