本文整理了Java中org.infinispan.configuration.cache.Configuration.isTemplate()
方法的一些代码示例,展示了Configuration.isTemplate()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Configuration.isTemplate()
方法的具体详情如下:
包路径:org.infinispan.configuration.cache.Configuration
类名称:Configuration
方法名:isTemplate
暂无
代码示例来源:origin: org.infinispan/infinispan-core
private static void assertTemplateConfiguration(ConfigurationBuilderHolder holder, String name) {
Configuration configuration = getConfiguration(holder, name);
assertNotNull("Configuration " + name + " expected", configuration);
assertTrue("Configuration " + name + " should be a template", configuration.isTemplate());
}
代码示例来源:origin: org.infinispan/infinispan-core
private static void assertCacheConfiguration(ConfigurationBuilderHolder holder, String name) {
Configuration configuration = getConfiguration(holder, name);
assertNotNull("Configuration " + name + " expected", configuration);
assertFalse("Configuration " + name + " should not be a template", configuration.isTemplate());
}
代码示例来源:origin: org.infinispan.server/infinispan-server-infinispan
@Override
protected ConfigurationBuilder getConfigurationBuilder() {
ConfigurationBuilder builder = new ConfigurationBuilder();
Configuration templateConfiguration = this.dependencies.getTemplateConfiguration();
if (templateConfiguration != null) {
builder.read(templateConfiguration);
}
Configuration configuration = this.builder.build();
builder.read(configuration);
builder.template(configuration.isTemplate());
builder.jmxStatistics().enabled(this.dependencies.getCacheContainer().getCacheManagerConfiguration().globalJmxStatistics().enabled());
TransactionManager tm = this.dependencies.getTransactionManager();
if (tm != null) {
builder.transaction().transactionManagerLookup(new TransactionManagerProvider(tm));
}
TransactionSynchronizationRegistry tsr = this.dependencies.getTransactionSynchronizationRegistry();
if (tsr != null) {
builder.transaction().transactionSynchronizationRegistryLookup(new TransactionSynchronizationRegistryProvider(tsr));
}
return builder;
}
}
代码示例来源:origin: org.infinispan/infinispan-hibernate-cache-commons
@Test
public void testDefaultPendingPutsCache() {
Properties p = createProperties();
TestRegionFactory factory = createRegionFactory(p);
try {
Configuration ppConfig = factory.getCacheManager().getCacheConfiguration(DEF_PENDING_PUTS_RESOURCE);
assertTrue(ppConfig.isTemplate());
assertFalse(ppConfig.clustering().cacheMode().isClustered());
assertTrue(ppConfig.simpleCache());
assertEquals(TransactionMode.NON_TRANSACTIONAL, ppConfig.transaction().transactionMode());
assertEquals(60000, ppConfig.expiration().maxIdle());
assertFalse(ppConfig.jmxStatistics().enabled());
assertFalse(ppConfig.jmxStatistics().available());
} finally {
factory.stop();
}
}
内容来源于网络,如有侵权,请联系作者删除!