cc.siyecao.uid.worker.dao.WorkerNodeDefault Maven / Gradle / Ivy
package cc.siyecao.uid.worker.dao;
import cc.siyecao.uid.worker.entity.WorkerNodeEntity;
import org.apache.commons.lang3.RandomUtils;
public class WorkerNodeDefault implements WorkerNodeResposity {
@Override
public WorkerNodeEntity getWorkerNodeByHostPort(String host, String port) {
return null;
}
@Override
public void addWorkerNode(WorkerNodeEntity entity) {
entity.setId( RandomUtils.nextInt( 0, 1000 ) );
}
}