Package com.mx.path.testing.session
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voiddelete(com.mx.path.core.context.Session session) final voiddeleteValue(com.mx.path.core.context.Session session, String key) final Stringfinal com.mx.path.core.context.Sessionfinal voidsave(com.mx.path.core.context.Session session) final voidfinal booleansetIfNotExist(com.mx.path.core.context.Session session, String key, String value) final booleansetIfNotExist(com.mx.path.core.context.Session session, String key, String value, long expiryMilliseconds)
-
Constructor Details
-
TestSessionRepository
public TestSessionRepository()
-
-
Method Details
-
delete
public final void delete(com.mx.path.core.context.Session session) - Specified by:
deletein interfacecom.mx.path.core.context.store.SessionRepository
-
deleteValue
- Specified by:
deleteValuein interfacecom.mx.path.core.context.store.SessionRepository
-
getValue
- Specified by:
getValuein interfacecom.mx.path.core.context.store.SessionRepository
-
load
- Specified by:
loadin interfacecom.mx.path.core.context.store.SessionRepository
-
save
public final void save(com.mx.path.core.context.Session session) - Specified by:
savein interfacecom.mx.path.core.context.store.SessionRepository
-
saveValue
- Specified by:
saveValuein interfacecom.mx.path.core.context.store.SessionRepository
-
setIfNotExist
public final boolean setIfNotExist(com.mx.path.core.context.Session session, String key, String value) - Specified by:
setIfNotExistin interfacecom.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:
setIfNotExistin interfacecom.mx.path.core.context.store.SessionRepository
-