com.yuweix.tripod.sequence.dao.loadbalancer.IRule Maven / Gradle / Ivy
package com.yuweix.tripod.sequence.dao.loadbalancer;
/**
* 多数据源时的路由转发规则
* @author yuwei
*/
public interface IRule {
/**
* 选择合适的数据库分片
*/
int chooseSegment(String seqName);
void setSegmentCount(int segmentCount);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy