本文整理了Java中org.infinispan.configuration.cache.Configuration.compatibility()
方法的一些代码示例,展示了Configuration.compatibility()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Configuration.compatibility()
方法的具体详情如下:
包路径:org.infinispan.configuration.cache.Configuration
类名称:Configuration
方法名:compatibility
暂无
代码示例来源:origin: shopizer-ecommerce/shopizer
fileStore.jmxStatistics().disable();
final Configuration config = persistConfig.addStore(fileStore).build();
config.compatibility().enabled();
manager.getManager().defineConfiguration(namedCache, config);
代码示例来源:origin: org.infinispan/infinispan-avro-server
/**
* Registers the remote value wrapper interceptor in the cache before it gets started.
*/
@Override
public void cacheStarting(ComponentRegistry cr, Configuration cfg, String cacheName) {
if (!cacheName.equals(Support.AVRO_METADATA_CACHE_NAME)) {
if (cfg.indexing().index().isEnabled() && !cfg.compatibility().enabled()) {
log.infof("Registering RemoteAvroValueWrapperInterceptor for cache %s", cacheName);
createRemoteIndexingInterceptor(cr, cfg);
}
}
}
代码示例来源:origin: org.infinispan/infinispan-avro-server
@Override
public void cacheStarted(ComponentRegistry cr, String cacheName) {
Configuration configuration = cr.getComponent(Configuration.class);
boolean remoteValueWrappingEnabled = configuration.indexing().index().isEnabled() && !configuration.compatibility().enabled();
if (!remoteValueWrappingEnabled) {
if (verifyChainContainsRemoteAvroValueWrapperInterceptor(cr)) {
throw new IllegalStateException("It was NOT expected to find the RemoteAvroValueWrapperInterceptor registered in the InterceptorChain as indexing was disabled, but it was found");
}
return;
}
if (!verifyChainContainsRemoteAvroValueWrapperInterceptor(cr)) {
throw new IllegalStateException("It was expected to find the RemoteAvroValueWrapperInterceptor registered in the InterceptorChain but it wasn't found");
}
}
代码示例来源:origin: org.infinispan/infinispan-core
@Override
public void call() {
Configuration cfg = cm.getDefaultCacheConfiguration();
assertTrue(cfg.compatibility().enabled());
assertNull(cfg.compatibility().marshaller());
}
});
代码示例来源:origin: org.infinispan/infinispan-core
@Override
public void call() {
Configuration cfg = cm.getDefaultCacheConfiguration();
assertTrue(cfg.compatibility().enabled());
assertTrue(cfg.compatibility().marshaller() instanceof GenericJBossMarshaller);
}
});
代码示例来源:origin: org.infinispan/infinispan-core
@Override
public void call() {
Configuration cfg = cm.getDefaultCacheConfiguration();
assertFalse(cfg.compatibility().enabled());
assertNull(cfg.compatibility().marshaller());
}
});
代码示例来源:origin: org.infinispan/infinispan-core
compareAttributeSets(name, configurationBefore.compatibility().attributes(), configurationAfter.compatibility().attributes(), "marshaller");
compareAttributeSets(name, configurationBefore.memory().attributes(), configurationAfter.memory().attributes());
compareAttributeSets(name, configurationBefore.expiration().attributes(), configurationAfter.expiration().attributes());
代码示例来源:origin: org.infinispan/infinispan-core
assertTrue(c.compatibility().enabled());
assertTrue(c.compatibility().marshaller() instanceof GenericJBossMarshaller);
assertFalse(c.deadlockDetection().enabled());
assertEquals(-1, c.deadlockDetection().spinDuration());
内容来源于网络,如有侵权,请联系作者删除!