Package net.csdn.modules.controller

Examples of net.csdn.modules.controller.QpsManager


        startORM(disableMysql);
        ServiceFramwork.injector.getInstance(API.class).qpsIncrement(processInfo.method);

        boolean qpsLimitEnable = settings.getAsBoolean("qpslimit.enable", false);
        if (qpsLimitEnable) {
            QpsManager qpsManager = ServiceFramwork.injector.getInstance(QpsManager.class);
            if (qpsManager.check(request.getRequestURI())) {
                logger.error("qps 限流");
                throw new RuntimeException("qps-overflow");
            }
        }
    }
View Full Code Here

TOP

Related Classes of net.csdn.modules.controller.QpsManager

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.