我正在尝试从Clojure中的 Infinispan 文档中复制一段代码:
ConfigurationBuilder b = new ConfigurationBuilder();
b.persistence()
.addStore(SoftIndexFileStoreConfigurationBuilder.class)
.indexLocation("/tmp/sifs/testCache/index");
.dataLocation("/tmp/sifs/testCache/data")
这是我的尝试:
(import '[org.infinispan.persistence.sifs.configuration.SoftIndexFileStoreConfigurationBuilder])
(import '[org.infinispan.configuration.cache ConfigurationBuilder])
(def b (ConfigurationBuilder.))
(.addStore (.persistence b)
(class org.infinispan.persistence.sifs.configuration.SoftIndexFileStoreConfigurationBuilder))
;; java.lang.ClassNotFoundException: org.infinispan.persistence.sifs.configuration.SoftIndexFileStoreConfigurationBuilder
我如何克服这个异常?这是SIFS 源