当前位置: 首页>>代码示例>>Java>>正文


Java ByteBufferFactoryImpl类代码示例

本文整理汇总了Java中org.infinispan.commons.io.ByteBufferFactoryImpl的典型用法代码示例。如果您正苦于以下问题:Java ByteBufferFactoryImpl类的具体用法?Java ByteBufferFactoryImpl怎么用?Java ByteBufferFactoryImpl使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


ByteBufferFactoryImpl类属于org.infinispan.commons.io包,在下文中一共展示了ByteBufferFactoryImpl类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: nukeBuckets

import org.infinispan.commons.io.ByteBufferFactoryImpl; //导入依赖的package包/类
@AfterMethod(alwaysRun = true)
private void nukeBuckets() throws Exception {
   for (String name : cacheManager.getCacheNames()) {
      CloudStore ccs = new CloudStore();
      Cache cache = cacheManager.getCache(name);
      ccs.init(new InitializationContextImpl(
                  cache.getAdvancedCache().getCacheConfiguration().persistence().stores().get(0), 
                  cache, 
                  TestingUtil.extractGlobalMarshaller(cacheManager),
                  cache.getAdvancedCache().getComponentRegistry().getTimeService(),
                  new ByteBufferFactoryImpl(),
                  new MarshalledEntryFactoryImpl()
                  ));
      ccs.start();
      ccs.removeContainer();
      ccs.stop();
   }
}
 
开发者ID:infinispan,项目名称:infinispan-cachestore-cloud,代码行数:19,代码来源:CloudCacheStoreFunctionalIT.java

示例2: createStore

import org.infinispan.commons.io.ByteBufferFactoryImpl; //导入依赖的package包/类
@Override
protected AdvancedLoadWriteStore createStore() throws Exception {
   clearTempDir();
   fcs = new LevelDBStore();
   ConfigurationBuilder cb = new ConfigurationBuilder();
   LevelDBStoreConfiguration cfg = createCacheStoreConfig(cb.persistence());
   fcs.init(new DummyInitializationContext(cfg, getCache(), getMarshaller(), new ByteBufferFactoryImpl(),
                                           new MarshalledEntryFactoryImpl(getMarshaller())));
   fcs.start();
   return fcs;
}
 
开发者ID:danberindei,项目名称:infinispan-cachestore-leveldb,代码行数:12,代码来源:LevelDBStoreTest.java

示例3: objectToBuffer

import org.infinispan.commons.io.ByteBufferFactoryImpl; //导入依赖的package包/类
public ByteBuffer objectToBuffer(Object o) throws IOException, InterruptedException {
	byte[] bin = MinimumMarshaller.marshal(o);
	ByteBufferFactoryImpl factory = new ByteBufferFactoryImpl();
	return factory.newByteBuffer(bin, 0, bin.length);
}
 
开发者ID:mkobayas,项目名称:hotrod-minimum-marshaller,代码行数:6,代码来源:HotrodMinimumMarshaller.java


注:本文中的org.infinispan.commons.io.ByteBufferFactoryImpl类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。