zeus::FutureData Class Reference

#include <FutureData.hpp>

Public Types

using ObserverFinish = std::function< bool(zeus::FutureBase)>
 

Public Attributes

uint32_t m_transactionId
 
uint32_t m_clientId
 
bool m_isSynchronous
 
ememory::SharedPtr< zeus::Bufferm_returnData
 
ObserverFinish m_callbackFinish
 
std::chrono::steady_clock::time_point m_sendTime
 
std::chrono::steady_clock::time_point m_receiveTime
 

Detailed Description

Data interface of the future (the future can be copied, but the data need to stay...

Member Typedef Documentation

§ ObserverFinish

using zeus::FutureData::ObserverFinish = std::function<bool(zeus::FutureBase)>

Define an Observer: function pointer.

Member Data Documentation

§ m_callbackFinish

ObserverFinish zeus::FutureData::m_callbackFinish

ofserver of the finish data

§ m_clientId

uint32_t zeus::FutureData::m_clientId

need to anser at this client.

§ m_isSynchronous

bool zeus::FutureData::m_isSynchronous

the future is synchronous. (call when receive data)

§ m_receiveTime

std::chrono::steady_clock::time_point zeus::FutureData::m_receiveTime

time when the future has receve answer

§ m_returnData

ememory::SharedPtr<zeus::Buffer> zeus::FutureData::m_returnData

all buffer concatenate or last buffer if synchronous

§ m_sendTime

std::chrono::steady_clock::time_point zeus::FutureData::m_sendTime

time when the future has been sended request

§ m_transactionId

uint32_t zeus::FutureData::m_transactionId

waiting answer data


The documentation for this class was generated from the following file: