Package com.wavemaker.runtime.session
Class WMInMemorySessionRepository
java.lang.Object
com.wavemaker.runtime.session.WMInMemorySessionRepository
- All Implemented Interfaces:
org.springframework.session.FindByIndexNameSessionRepository<org.springframework.session.MapSession>,org.springframework.session.SessionRepository<org.springframework.session.MapSession>
public class WMInMemorySessionRepository
extends Object
implements org.springframework.session.FindByIndexNameSessionRepository<org.springframework.session.MapSession>
-
Field Summary
Fields inherited from interface org.springframework.session.FindByIndexNameSessionRepository
PRINCIPAL_NAME_INDEX_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.session.MapSessionvoiddeleteById(String id) org.springframework.session.MapSessionfindByIndexNameAndIndexValue(String indexName, String value) voidinit()voidsave(org.springframework.session.MapSession session) voidsetDefaultMaxInactiveInterval(int defaultMaxInactiveInterval) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.session.FindByIndexNameSessionRepository
findByPrincipalName
-
Constructor Details
-
WMInMemorySessionRepository
public WMInMemorySessionRepository()
-
-
Method Details
-
init
@PostConstruct public void init() -
findByIndexNameAndIndexValue
public Map<String,org.springframework.session.MapSession> findByIndexNameAndIndexValue(String indexName, String value) - Specified by:
findByIndexNameAndIndexValuein interfaceorg.springframework.session.FindByIndexNameSessionRepository<org.springframework.session.MapSession>
-
createSession
public org.springframework.session.MapSession createSession()- Specified by:
createSessionin interfaceorg.springframework.session.SessionRepository<org.springframework.session.MapSession>
-
save
public void save(org.springframework.session.MapSession session) - Specified by:
savein interfaceorg.springframework.session.SessionRepository<org.springframework.session.MapSession>
-
findById
- Specified by:
findByIdin interfaceorg.springframework.session.SessionRepository<org.springframework.session.MapSession>
-
deleteById
- Specified by:
deleteByIdin interfaceorg.springframework.session.SessionRepository<org.springframework.session.MapSession>
-
setDefaultMaxInactiveInterval
public void setDefaultMaxInactiveInterval(int defaultMaxInactiveInterval)
-