Package net.csdn.modules.controller

Examples of net.csdn.modules.controller.QpsManager.check()


        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
Copyright © 2018 www.massapi.com. 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.