Class TestSessionRepository

java.lang.Object
com.mx.path.testing.session.TestSessionRepository
All Implemented Interfaces:
com.mx.path.core.context.store.SessionRepository

public class TestSessionRepository extends Object implements com.mx.path.core.context.store.SessionRepository
Stand-in session repository using in-memory HashMap.
  • Constructor Details

    • TestSessionRepository

      public TestSessionRepository()
  • Method Details

    • delete

      public final void delete(com.mx.path.core.context.Session session)
      Specified by:
      delete in interface com.mx.path.core.context.store.SessionRepository
    • deleteValue

      public final void deleteValue(com.mx.path.core.context.Session session, String key)
      Specified by:
      deleteValue in interface com.mx.path.core.context.store.SessionRepository
    • getValue

      public final String getValue(com.mx.path.core.context.Session session, String key)
      Specified by:
      getValue in interface com.mx.path.core.context.store.SessionRepository
    • load

      public final com.mx.path.core.context.Session load(String sessionId)
      Specified by:
      load in interface com.mx.path.core.context.store.SessionRepository
    • save

      public final void save(com.mx.path.core.context.Session session)
      Specified by:
      save in interface com.mx.path.core.context.store.SessionRepository
    • saveValue

      public final void saveValue(com.mx.path.core.context.Session session, String key, String value)
      Specified by:
      saveValue in interface com.mx.path.core.context.store.SessionRepository
    • setIfNotExist

      public final boolean setIfNotExist(com.mx.path.core.context.Session session, String key, String value)
      Specified by:
      setIfNotExist in interface com.mx.path.core.context.store.SessionRepository
    • setIfNotExist

      public final boolean setIfNotExist(com.mx.path.core.context.Session session, String key, String value, long expiryMilliseconds)
      Specified by:
      setIfNotExist in interface com.mx.path.core.context.store.SessionRepository