本文整理汇总了Java中org.sdnplatform.sync.internal.store.InMemoryStorageEngine类的典型用法代码示例。如果您正苦于以下问题:Java InMemoryStorageEngine类的具体用法?Java InMemoryStorageEngine怎么用?Java InMemoryStorageEngine使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
InMemoryStorageEngine类属于org.sdnplatform.sync.internal.store包,在下文中一共展示了InMemoryStorageEngine类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: StoreRegistry
import org.sdnplatform.sync.internal.store.InMemoryStorageEngine; //导入依赖的package包/类
/**
* Construct a new {@link StoreRegistry}
* @param syncManager The associated syncManager
*/
public StoreRegistry(SyncManager syncManager, String dbPath) {
super();
this.syncManager = syncManager;
this.dbPath = dbPath;
hints = new InMemoryStorageEngine<HintKey, byte[]>("system-hints");
}
示例2: getStore
import org.sdnplatform.sync.internal.store.InMemoryStorageEngine; //导入依赖的package包/类
@Override
public IStore<Key, TBean> getStore() throws Exception {
IStore<ByteArray,byte[]> ims =
new InMemoryStorageEngine<ByteArray,byte[]>("test");
IStore<Key,TBean> js =
new JacksonStore<Key, TBean>(ims, Key.class, TBean.class);
return js;
}
示例3: setUp
import org.sdnplatform.sync.internal.store.InMemoryStorageEngine; //导入依赖的package包/类
@Before
public void setUp() throws Exception {
this.store = new InMemoryStorageEngine<ByteArray, byte[]>("test");
}