public class EmbeddedUserSessionService extends Object implements UserSessionService
Modifier and Type | Field and Description |
---|---|
protected EngageEngineConfiguration |
engineConfiguration |
protected SimpUserRegistry |
simpUserRegistry |
Constructor and Description |
---|
EmbeddedUserSessionService(EngageEngineConfiguration engineConfiguration,
SimpUserRegistry simpUserRegistry) |
Modifier and Type | Method and Description |
---|---|
void |
userConnected(String userId,
String tenantId,
String sessionId)
Method invoked when the user has been connected in real time to the application
|
void |
userDisconnected(String userId,
String tenantId,
String sessionId)
Method invoked when the user has been disconnected from a single session the application
|
protected final EngageEngineConfiguration engineConfiguration
protected final SimpUserRegistry simpUserRegistry
public EmbeddedUserSessionService(EngageEngineConfiguration engineConfiguration, SimpUserRegistry simpUserRegistry)
public void userConnected(String userId, String tenantId, String sessionId)
UserSessionService
userConnected
in interface UserSessionService
userId
- the id of the user that has connectedtenantId
- the tenant id for the connectionsessionId
- the id of the session that the user is connected topublic void userDisconnected(String userId, String tenantId, String sessionId)
UserSessionService
userDisconnected
in interface UserSessionService
userId
- the id of the user that has been disconnectedtenantId
- the tenant id for the connectionsessionId
- the session id that the user disconnected from