private void updateGlobalProperties(TurmsProperties properties) {
        SessionProperties sessionProperties = properties.getGateway()
                .getSession();
        closeIdleSessionAfterSeconds = sessionProperties.getCloseIdleSessionAfterSeconds();
        notifyClientsOfSessionInfoAfterConnected =
                sessionProperties.isNotifyClientsOfSessionInfoAfterConnected();
        DeviceDetailsProperties detailsProperties = sessionProperties.getDeviceDetails();
        deviceDetailsItemPropertiesList = detailsProperties.getItems();
    }
We don't use "NonBlockingHashMapLong" because we need to support IPv6 addresses, which takes
16 bytes per address. So we can only eliminate unnecessary objects after Valhalla publish
value objects.
turms-gateway/src/main/java/im/turms/gateway/domain/session/service/SessionService.java