Class HazelcastSessionRepository
java.lang.Object
org.springframework.session.hazelcast.HazelcastIndexedSessionRepository
org.springframework.session.hazelcast.HazelcastSessionRepository
- All Implemented Interfaces:
com.hazelcast.map.listener.EntryAddedListener<String,,MapSession> com.hazelcast.map.listener.EntryEvictedListener<String,,MapSession> com.hazelcast.map.listener.EntryRemovedListener<String,,MapSession> com.hazelcast.map.listener.MapListener,EventListener,FindByIndexNameSessionRepository<org.springframework.session.hazelcast.HazelcastIndexedSessionRepository.HazelcastSession>,SessionRepository<org.springframework.session.hazelcast.HazelcastIndexedSessionRepository.HazelcastSession>
Deprecated.
This
SessionRepository implementation is kept in order to support migration to
HazelcastIndexedSessionRepository in a backwards compatible manner.- Since:
- 1.3.0
-
Field Summary
Fields inherited from class org.springframework.session.hazelcast.HazelcastIndexedSessionRepository
DEFAULT_SESSION_MAP_NAME, PRINCIPAL_NAME_ATTRIBUTEFields inherited from interface org.springframework.session.FindByIndexNameSessionRepository
PRINCIPAL_NAME_INDEX_NAME -
Constructor Summary
ConstructorsConstructorDescriptionHazelcastSessionRepository(com.hazelcast.core.HazelcastInstance hazelcastInstance) Deprecated.Create a newHazelcastSessionRepositoryinstance. -
Method Summary
Modifier and TypeMethodDescriptionvoidsetHazelcastFlushMode(HazelcastFlushMode hazelcastFlushMode) Deprecated.since 2.2.0 in favor ofHazelcastIndexedSessionRepository.setFlushMode(FlushMode)Methods inherited from class org.springframework.session.hazelcast.HazelcastIndexedSessionRepository
close, createSession, deleteById, entryAdded, entryEvicted, entryRemoved, findById, findByIndexNameAndIndexValue, init, save, setApplicationEventPublisher, setDefaultMaxInactiveInterval, setFlushMode, setIndexResolver, setSaveMode, setSessionMapNameMethods 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
-
HazelcastSessionRepository
public HazelcastSessionRepository(com.hazelcast.core.HazelcastInstance hazelcastInstance) Deprecated.Create a newHazelcastSessionRepositoryinstance.- Parameters:
hazelcastInstance- theHazelcastInstanceto use for managing sessions- See Also:
-
-
Method Details
-
setHazelcastFlushMode
Deprecated.since 2.2.0 in favor ofHazelcastIndexedSessionRepository.setFlushMode(FlushMode)Sets the Hazelcast flush mode. Default flush mode isHazelcastFlushMode.ON_SAVE.- Parameters:
hazelcastFlushMode- the new Hazelcast flush mode
-
HazelcastIndexedSessionRepository