我正在学习如何使用伏地魔。我无法理解类 ClientConfig 的以下方法
ClientConfig conf = new ClientConfig();
StoreClientFactory factory;
StoreClient<String, String> client;
conf.setBootstrapUrls(""tcp://localhost:6666");
conf.setMaxThreads(10);
factory = new SocketStoreClientFactory(conf);
client = factory.getStoreClient("storeName");
Versioned<String> value = client.get("key")
我的问题是,具体.setMaxThreads()
做什么?它会产生 10 个不同的线程,所有线程都执行该.get()
方法吗?
伏地魔的javadoc只是说:“设置客户端线程的最大数量”
谢谢。