org.infinispan.Cache.getConfiguration()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(2.0k)|赞(0)|评价(0)|浏览(140)

本文整理了Java中org.infinispan.Cache.getConfiguration()方法的一些代码示例,展示了Cache.getConfiguration()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Cache.getConfiguration()方法的具体详情如下:
包路径:org.infinispan.Cache
类名称:Cache
方法名:getConfiguration

Cache.getConfiguration介绍

暂无

代码示例

代码示例来源:origin: org.jboss.cluster/jboss-ha-server-cache-ispn

public DistributedCacheManager(LocalDistributableSessionManager manager,
   Cache<String, Map<Object, Object>> sessionCache, CacheSource jvmRouteCacheSource,
   SharedLocalYieldingClusterLockManager lockManager, SessionAttributeStorage<T> attributeStorage,
   BatchingManager batchingManager, CacheInvoker invoker)
{
 this.manager = manager;
 this.lockManager = lockManager;
 this.sessionCache = sessionCache;
 this.attributeStorage = attributeStorage;
 this.batchingManager = batchingManager;
 this.invoker = invoker;
 
 Configuration configuration = this.sessionCache.getConfiguration();
 CacheLoaderManagerConfig loaderManagerConfig = configuration.getCacheLoaderManagerConfig();
 
 this.passivationEnabled = (loaderManagerConfig != null) ? loaderManagerConfig.isPassivation().booleanValue() && !loaderManagerConfig.isShared().booleanValue() : false;
 
 this.jvmRouteHandler = configuration.getCacheMode().isDistributed() ? new JvmRouteHandler(jvmRouteCacheSource, this.manager) : null;
}

代码示例来源:origin: org.infinispan/infinispan-cachestore-bdbje

void start() throws DatabaseException, CacheLoaderException {
 cs.init(cfg, factory, cache, new TestObjectStreamMarshaller());
 when(cache.getName()).thenReturn("cache");
 when(cache.getConfiguration()).thenReturn(null);
}

代码示例来源:origin: org.jboss.cluster/jboss-ha-server-cache-ispn

if (address != null)
  localAddress = address;
else if (Configuration.CacheMode.LOCAL == cache.getConfiguration().getCacheMode())
  localAddress = "LOCAL";
else

代码示例来源:origin: org.jboss.cluster/jboss-ha-server-cache-ispn

public SharedLocalYieldingClusterLockManager getLockManager(Cache<?, ?> cache)
 if (!cache.getConfiguration().getCacheMode().isClustered()) return null;

相关文章