Package org.switchyard.config.model.switchyard

Examples of org.switchyard.config.model.switchyard.ThrottlingModel


        _service = service;

        if (extensions == null) {
            return;
        }
        final ThrottlingModel throttling = extensions.getThrottling();
        if (throttling == null) {
            return;
        }
        _maxRequests = throttling.getMaxRequests();
        _enabled = true;
        final Long timePeriod = throttling.getTimePeriod();
        if (timePeriod != null) {
            _timePeriod = timePeriod;
        }
    }
View Full Code Here


    private Throttling getCompositeServiceThrottling(CompositeServiceModel compositeServiceModel) {
        final ExtensionsModel extensions = compositeServiceModel.getExtensions();
        if (extensions == null) {
            return null;
        }
        final ThrottlingModel throttling = extensions.getThrottling();
        if (throttling == null) {
            return null;
        }
        final Long timePeriod = throttling.getTimePeriod();
        final Throttling retVal = new Throttling();
        retVal.setMaxRequests(throttling.getMaxRequests());
        if (timePeriod != null) {
            retVal.setTimePeriod(timePeriod);
        }
        return retVal;
    }
View Full Code Here

TOP

Related Classes of org.switchyard.config.model.switchyard.ThrottlingModel

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.