Class MemoryHttpSessionStore

java.lang.Object
net.officefloor.web.session.store.MemoryHttpSessionStore
All Implemented Interfaces:
HttpSessionStore

public class MemoryHttpSessionStore extends Object implements HttpSessionStore

HttpSessionStore that contains state of the HttpSession within memory.

This is a very basic implementation that keeps all HttpSession instances in memory. Though this may provide a very fast solution it suffers from issues such as:

  1. OutOfMemoryError if too many/large HttpSession instances
  2. state is not shared with other JVMs (especially for clustered environments)

This is useful in light load testing environments (such as unit tests).

Author:
Daniel Sagenschneider