LogCabin
|
Tracks state for a particular client. More...
Public Member Functions | |
Session () | |
Public Attributes | |
uint64_t | lastModified |
When the session was last active, measured in cluster time (roughly the number of nanoseconds that the cluster has maintained a leader). | |
uint64_t | firstOutstandingRPC |
Largest firstOutstandingRPC number processed from this client. | |
std::unordered_map< uint64_t, Protocol::Client::StateMachineCommand::Response > | responses |
Maps from RPC numbers to responses. |
Tracks state for a particular client.
Used to prevent duplicate processing of duplicate RPCs.
Definition at line 451 of file StateMachine.h.
LogCabin::Server::StateMachine::Session::Session | ( | ) | [inline] |
Definition at line 452 of file StateMachine.h.
When the session was last active, measured in cluster time (roughly the number of nanoseconds that the cluster has maintained a leader).
Definition at line 463 of file StateMachine.h.
Largest firstOutstandingRPC number processed from this client.
Definition at line 467 of file StateMachine.h.
std::unordered_map<uint64_t, Protocol::Client::StateMachineCommand::Response> LogCabin::Server::StateMachine::Session::responses |
Maps from RPC numbers to responses.
Responses for RPCs numbered less that firstOutstandingRPC are discarded from this map.
Definition at line 475 of file StateMachine.h.