Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The SessionCache provides access to the Geode Cache and Region used to store the Session objects.  This includes adding, removing, and "touching" sessions (resetting their TTL by performing a get on the region entry).  This component abstracts away most of the actual interaction with the Geode specific components from the SessionManager (with the exception of session persistence to disk).  Most of the logic for managing sessions is in the AbstractSessionCache base class, but depending on the chosen topology either a ClientServerSessionCache or a PeerToPeerSession class will be used.  A summary of the differences between these two SessionCache implementations are outlined below:

...

  • "Bootstraps" the servers with functions for creating the server session region, "touching" sessions (updating TTL), and retrieving the session region size
  • Creates and validates the server session region via server-side function execution
  • Creates the local session region using ClientRegionFactory
  • "Touches" sessions (performing a get on the region entry) to update TTL using onServers for replicated regions or onRegion for partitioned regions

...

  • Registers functions for "touching" sessions (updating TTL)
  • Creates and validates the server session region
  • "Touches" sessions (performing a get on the region entry) to update TTL using onMembers for replicated regions or onRegion for partitioned regions

...