refactoring
This commit is contained in:
parent
939c00c299
commit
6b92ed8005
@ -145,10 +145,11 @@ public class TbWebSocketHandler extends TextWebSocketHandler implements WebSocke
|
||||
return;
|
||||
}
|
||||
var tenantProfileConfiguration = getTenantProfileConfiguration(sessionRef);
|
||||
int wsTenantProfileQueueLimit = tenantProfileConfiguration != null ?
|
||||
tenantProfileConfiguration.getWsMsgQueueLimitPerSession() : wsMaxQueueMessagesPerSession;
|
||||
internalSessionMap.put(internalSessionId, new SessionMetaData(session, sessionRef,
|
||||
tenantProfileConfiguration != null && tenantProfileConfiguration.getWsMsgQueueLimitPerSession() > 0 &&
|
||||
tenantProfileConfiguration.getWsMsgQueueLimitPerSession() < wsMaxQueueMessagesPerSession ?
|
||||
tenantProfileConfiguration.getWsMsgQueueLimitPerSession() : wsMaxQueueMessagesPerSession));
|
||||
(wsTenantProfileQueueLimit > 0 && wsTenantProfileQueueLimit < wsMaxQueueMessagesPerSession) ?
|
||||
wsTenantProfileQueueLimit : wsMaxQueueMessagesPerSession));
|
||||
|
||||
externalSessionMap.put(externalSessionId, internalSessionId);
|
||||
processInWebSocketService(sessionRef, SessionEvent.onEstablished());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user