企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
> import java.util.Random; > import java.util.concurrent.BlockingQueue; > import java.util.concurrent.TimeUnit; > import java.util.concurrent.atomic.AtomicInteger; ~~~ public class Data{ private String id; private String name; public Data(String id,String name){ this.id=id; this.name=name; } public String getId(){ return id; } public void setId(String id){ this.id=id; } pubic getName(){ return name; } public setName(String name){ this.name=name; } @Override public String toString(){ return "Data [id=" + id + ", name=" + name + "]"; } } ~~~