Interface GatewaySessionManager
public interface GatewaySessionManager
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionfindSession(String id) findSessions(int scope) intvoidsendNotification(int scope, String moduleId, String messageType) Sends an empty push notification to all sessions that match the scope.<T> voidsendNotification(int scope, String moduleId, String messageType, T message, PushNotificationSerializer<T> serializer) Sends the given push notification message to all sessions that match the scope.
-
Field Details
-
MDC_REMOTE_ADDR
MDC key for request ip- See Also:
-
MDC_USERNAME
MDC key for request user- See Also:
-
MDC_SESSION_ID
MDC key for request's associated session id- See Also:
-
MDC_PROJECT_NAME
MDC key for request's associated project- See Also:
-
-
Method Details
-
findSession
-
findSessions
-
findSessions
-
getSessionCount
int getSessionCount() -
sendNotification
<T> void sendNotification(int scope, String moduleId, String messageType, T message, PushNotificationSerializer<T> serializer) throws Exception Sends the given push notification message to all sessions that match the scope.- Throws:
Exception- See Also:
-
sendNotification
Sends an empty push notification to all sessions that match the scope.- Throws:
Exception
-