Package flex.messaging.config

Examples of flex.messaging.config.NetworkSettings


    {
        ConfigMap network = properties.getPropertyAsMap(NetworkSettings.NETWORK_ELEMENT, null);
        if (network != null)
        {
            // Get implementation specific network settings, including subclasses!
            NetworkSettings ns = getNetworkSettings();

            // Subscriber timeout; first check for subscription-timeout-minutes and fallback to legacy session-timeout.
            int useLegacyPropertyToken = -999999;
            int subscriptionTimeoutMinutes = network.getPropertyAsInt(NetworkSettings.SUBSCRIPTION_TIMEOUT_MINUTES, useLegacyPropertyToken);
            if (subscriptionTimeoutMinutes == useLegacyPropertyToken)
                subscriptionTimeoutMinutes = network.getPropertyAsInt(NetworkSettings.SESSION_TIMEOUT, NetworkSettings.DEFAULT_TIMEOUT);
            ns.setSubscriptionTimeoutMinutes(subscriptionTimeoutMinutes);

            // Throttle Settings
            throttle(ns.getThrottleSettings(), network);

            setNetworkSettings(ns);
        }
    }
View Full Code Here


     */
    public Destination(boolean enableManagement)
    {
        super(enableManagement);

        networkSettings = new NetworkSettings();
    }
View Full Code Here

    {
        ConfigMap network = properties.getPropertyAsMap(NetworkSettings.NETWORK_ELEMENT, null);
        if (network != null)
        {
            // Get implementation specific network settings, including subclasses!
            NetworkSettings ns = getNetworkSettings();

            // Subscriber timeout; first check for subscription-timeout-minutes and fallback to legacy session-timeout.
            int useLegacyPropertyToken = -999999;
            int subscriptionTimeoutMinutes = network.getPropertyAsInt(NetworkSettings.SUBSCRIPTION_TIMEOUT_MINUTES, useLegacyPropertyToken);
            if (subscriptionTimeoutMinutes == useLegacyPropertyToken)
                subscriptionTimeoutMinutes = network.getPropertyAsInt(NetworkSettings.SESSION_TIMEOUT, NetworkSettings.DEFAULT_TIMEOUT);
            ns.setSubscriptionTimeoutMinutes(subscriptionTimeoutMinutes);

            // Throttle Settings
            throttle(ns.getThrottleSettings(), network);
           
            setNetworkSettings(ns);
        }
    }
View Full Code Here

     */
    public Destination(boolean enableManagement)
    {
        super(enableManagement);
       
        networkSettings = new NetworkSettings();
    }
View Full Code Here

TOP

Related Classes of flex.messaging.config.NetworkSettings

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.