本文整理了Java中org.infinispan.Cache.getConfiguration()
方法的一些代码示例,展示了Cache.getConfiguration()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Cache.getConfiguration()
方法的具体详情如下:
包路径:org.infinispan.Cache
类名称: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;
内容来源于网络,如有侵权,请联系作者删除!