Class HazelcastSessionHelper
-
- All Implemented Interfaces:
-
java.util.EventListener,org.springframework.context.ApplicationListener,pro.fessional.wings.slardar.session.WingsSessionHelper
public class HazelcastSessionHelper implements WingsSessionHelper, ApplicationListener<E>- Since:
2022-02-24
trydofor
-
-
Field Summary
Fields Modifier and Type Field Description public final static StringUserIdKeypublic final static StringExpiredKey
-
Constructor Summary
Constructors Constructor Description HazelcastSessionHelper(SessionRepository<Session> repository, HazelcastInstance instance, String sessionMap)
-
Method Summary
Modifier and Type Method Description List<MapSession>findByUserId(Long userId)booleandropSession(String sessionId)voidonApplicationEvent(@NotNull() SessionCreatedEvent event)-
Methods inherited from class pro.fessional.wings.slardar.session.WingsSessionHelper
getSecurityContext, getUserId, isExpired -
Methods inherited from class org.springframework.context.ApplicationListener
forPayload, supportsAsyncExecution -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
HazelcastSessionHelper
HazelcastSessionHelper(SessionRepository<Session> repository, HazelcastInstance instance, String sessionMap)
-
-
Method Detail
-
findByUserId
@NotNull() List<MapSession> findByUserId(Long userId)
-
dropSession
boolean dropSession(String sessionId)
-
onApplicationEvent
void onApplicationEvent(@NotNull() SessionCreatedEvent event)
-
-
-
-