LogCabin
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Public Attributes
LogCabin::Server::StateMachine::Session Struct Reference

Tracks state for a particular client. More...

List of all members.

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.

Detailed Description

Tracks state for a particular client.

Used to prevent duplicate processing of duplicate RPCs.

Definition at line 451 of file StateMachine.h.


Constructor & Destructor Documentation

Definition at line 452 of file StateMachine.h.


Member Data Documentation

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.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines