Class HotRodSessionRepository
- java.lang.Object
-
- org.wildfly.clustering.web.spring.hotrod.HotRodSessionRepository
-
- All Implemented Interfaces:
AutoCloseable,org.springframework.beans.factory.DisposableBean,org.springframework.beans.factory.InitializingBean,org.springframework.session.SessionRepository<DistributableSession<org.wildfly.clustering.ee.cache.tx.TransactionBatch>>,org.wildfly.clustering.Registrar<String>,org.wildfly.clustering.Registration,org.wildfly.clustering.web.LocalContextFactory<Void>
public class HotRodSessionRepository extends Object implements org.springframework.session.SessionRepository<DistributableSession<org.wildfly.clustering.ee.cache.tx.TransactionBatch>>, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean, org.wildfly.clustering.web.LocalContextFactory<Void>, org.wildfly.clustering.Registrar<String>, org.wildfly.clustering.Registration
- Author:
- Paul Ferraro
-
-
Constructor Summary
Constructors Constructor Description HotRodSessionRepository(HotRodSessionRepositoryConfiguration configuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterPropertiesSet()voidclose()VoidcreateLocalContext()DistributableSession<org.wildfly.clustering.ee.cache.tx.TransactionBatch>createSession()voiddeleteById(String id)voiddestroy()DistributableSession<org.wildfly.clustering.ee.cache.tx.TransactionBatch>findById(String id)org.wildfly.clustering.Registrationregister(String name)voidsave(DistributableSession<org.wildfly.clustering.ee.cache.tx.TransactionBatch> session)
-
-
-
Constructor Detail
-
HotRodSessionRepository
public HotRodSessionRepository(HotRodSessionRepositoryConfiguration configuration)
-
-
Method Detail
-
afterPropertiesSet
public void afterPropertiesSet() throws Exception- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-
destroy
public void destroy() throws Exception- Specified by:
destroyin interfaceorg.springframework.beans.factory.DisposableBean- Throws:
Exception
-
register
public org.wildfly.clustering.Registration register(String name)
- Specified by:
registerin interfaceorg.wildfly.clustering.Registrar<String>
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceorg.wildfly.clustering.Registration
-
createLocalContext
public Void createLocalContext()
- Specified by:
createLocalContextin interfaceorg.wildfly.clustering.web.LocalContextFactory<Void>
-
createSession
public DistributableSession<org.wildfly.clustering.ee.cache.tx.TransactionBatch> createSession()
- Specified by:
createSessionin interfaceorg.springframework.session.SessionRepository<DistributableSession<org.wildfly.clustering.ee.cache.tx.TransactionBatch>>
-
findById
public DistributableSession<org.wildfly.clustering.ee.cache.tx.TransactionBatch> findById(String id)
- Specified by:
findByIdin interfaceorg.springframework.session.SessionRepository<DistributableSession<org.wildfly.clustering.ee.cache.tx.TransactionBatch>>
-
deleteById
public void deleteById(String id)
- Specified by:
deleteByIdin interfaceorg.springframework.session.SessionRepository<DistributableSession<org.wildfly.clustering.ee.cache.tx.TransactionBatch>>
-
save
public void save(DistributableSession<org.wildfly.clustering.ee.cache.tx.TransactionBatch> session)
- Specified by:
savein interfaceorg.springframework.session.SessionRepository<DistributableSession<org.wildfly.clustering.ee.cache.tx.TransactionBatch>>
-
-