Package com.xiaomi.common.service.dal.routing.router

Examples of com.xiaomi.common.service.dal.routing.router.XmHashRouter


            return factory.setColumn(conf[2]).setPattern(conf[3]).setPartition(conf[4]).createRouter();
        } else if (XM_HASH.equalsIgnoreCase(conf[0])) {
            RouterFactory factory = new RouterFactory(XM_HASH) {
                @Override
                public Router onCreateRouter(String column, String pattern, int partitions) {
                    return new XmHashRouter(column, pattern, partitions);
                }
            };
            return factory.setColumn(conf[2]).setPattern(conf[3]).setPartition(conf[4]).createRouter();
        } else if (XM_STRING_HASH.equalsIgnoreCase(conf[0])) {
            RouterFactory factory = new RouterFactory(XM_STRING_HASH) {
View Full Code Here

TOP

Related Classes of com.xiaomi.common.service.dal.routing.router.XmHashRouter

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.