Examples of RoutingResultCacheAspect


Examples of com.alibaba.cobar.client.router.aspects.RoutingResultCacheAspect

        getRuleLoader().loadRulesAndEquipRouter(rules, routerToUse, getFunctionsMap());

        if (isEnableCache()) {
            ProxyFactory proxyFactory = new ProxyFactory(routerToUse);
            proxyFactory.setInterfaces(new Class[] { ICobarRouter.class });
            RoutingResultCacheAspect advice = new RoutingResultCacheAspect();
            if (cacheSize > 0) {
                advice.setInternalCache(new LRUMap(cacheSize));
            }
            proxyFactory.addAdvice(advice);
            this.router = (ICobarRouter<IBatisRoutingFact>) proxyFactory.getProxy();
        } else {
            this.router = routerToUse;
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.