com.yuweix.kuafu.sequence.dao.lb.IRule Maven / Gradle / Ivy
The newest version!
package com.yuweix.kuafu.sequence.dao.lb;
/**
* 多数据源时的路由转发规则
* @author yuwei
*/
public interface IRule {
/**
* 选择合适的数据库分片
*/
int chooseSegment(String seqName);
void setSegmentCount(int segmentCount);
}