本文整理了Java中net.sf.ehcache.config.Configuration.setUpdateCheck()
方法的一些代码示例,展示了Configuration.setUpdateCheck()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Configuration.setUpdateCheck()
方法的具体详情如下:
包路径:net.sf.ehcache.config.Configuration
类名称:Configuration
方法名:setUpdateCheck
[英]Allows BeanHandler to set the updateCheck flag.
[中]允许BeanHandler设置updateCheck标志。
代码示例来源:origin: jooby-project/jooby
public Configuration build(final Config config) {
sint("ehcache", config, "defaultTransactionTimeoutInSeconds",
eh::setDefaultTransactionTimeoutInSeconds);
siseconds("ehcache", config, "defaultTransactionTimeout",
eh::setDefaultTransactionTimeoutInSeconds);
sbool("ehcache", config, "dynamicConfig", eh::setDynamicConfig);
sbytes("ehcache", config, "maxBytesLocalDisk", eh::setMaxBytesLocalDisk);
sbytes("ehcache", config, "maxBytesLocalHeap", eh::setMaxBytesLocalHeap);
sbytes("ehcache", config, "maxBytesLocalOffHeap", eh::setMaxBytesLocalOffHeap);
sstr("ehcache", config, "monitoring", eh::setMonitoring);
sstr("ehcache", config, "name", eh::setName);
eh.setUpdateCheck(false);
sconf("ehcache", config, "cacheManagerEventListenerFactory",
this::cacheManagerEventListenerFactory);
sconf("ehcache", config, "cacheManagerPeerListenerFactory",
this::cacheManagerPeerListenerFactory);
sconf("ehcache", config, "cacheManagerPeerProviderFactory",
this::cacheManagerPeerProviderFactory);
sconf("ehcache", config, "diskStore", this::diskStore);
sconf("ehcache", config, "sizeOfPolicy", this::sizeOfPolicy);
sconf("ehcache", config, "terracottaConfig", this::terracotaConfig);
sconf("ehcache", config, "transactionManagerLookup", this::transactionManagerLookup);
return eh;
}
代码示例来源:origin: org.sonatype.nexus.bundles/org.sonatype.nexus.bundles.ehcache
/**
* Builder to set the state of the automated update check.
*
* @param updateCheck
* {@code true} if the update check should be turned on; or {@code false} otherwise
* @return this configuration instance
*/
public final Configuration updateCheck(boolean updateCheck) {
setUpdateCheck(updateCheck);
return this;
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.ehcache
/**
* Builder to set the state of the automated update check.
*
* @param updateCheck
* {@code true} if the update check should be turned on; or {@code false} otherwise
* @return this configuration instance
*/
public final Configuration updateCheck(boolean updateCheck) {
setUpdateCheck(updateCheck);
return this;
}
代码示例来源:origin: org.sonatype.sisu/sisu-ehcache
configuration.setUpdateCheck( false );
return new CacheManager( configuration );
代码示例来源:origin: hburgmeier/jerseyoauth2
public DefaultCacheManagerProvider()
{
net.sf.ehcache.config.Configuration config = new net.sf.ehcache.config.Configuration();
config.setUpdateCheck(false);
CacheConfiguration tokenCacheConfiguration = new CacheConfiguration().
maxEntriesLocalHeap(DEFAULT_MAX_CACHE_ENTRIES).
name("tokenCache").
persistence(new PersistenceConfiguration().strategy(Strategy.NONE));
tokenCacheConfiguration.validateConfiguration();
config.addCache(tokenCacheConfiguration );
cacheManager = CacheManager.create(config);
}
代码示例来源:origin: org.jooby/jooby-ehcache
public Configuration build(final Config config) {
sint("ehcache", config, "defaultTransactionTimeoutInSeconds",
eh::setDefaultTransactionTimeoutInSeconds);
siseconds("ehcache", config, "defaultTransactionTimeout",
eh::setDefaultTransactionTimeoutInSeconds);
sbool("ehcache", config, "dynamicConfig", eh::setDynamicConfig);
sbytes("ehcache", config, "maxBytesLocalDisk", eh::setMaxBytesLocalDisk);
sbytes("ehcache", config, "maxBytesLocalHeap", eh::setMaxBytesLocalHeap);
sbytes("ehcache", config, "maxBytesLocalOffHeap", eh::setMaxBytesLocalOffHeap);
sstr("ehcache", config, "monitoring", eh::setMonitoring);
sstr("ehcache", config, "name", eh::setName);
eh.setUpdateCheck(false);
sconf("ehcache", config, "cacheManagerEventListenerFactory",
this::cacheManagerEventListenerFactory);
sconf("ehcache", config, "cacheManagerPeerListenerFactory",
this::cacheManagerPeerListenerFactory);
sconf("ehcache", config, "cacheManagerPeerProviderFactory",
this::cacheManagerPeerProviderFactory);
sconf("ehcache", config, "diskStore", this::diskStore);
sconf("ehcache", config, "sizeOfPolicy", this::sizeOfPolicy);
sconf("ehcache", config, "terracottaConfig", this::terracotaConfig);
sconf("ehcache", config, "transactionManagerLookup", this::transactionManagerLookup);
return eh;
}
代码示例来源:origin: yrain/smart-cache
configuration.setDefaultCacheConfiguration(defaultCacheConfiguration);
configuration.setDynamicConfig(false);
configuration.setUpdateCheck(false);
this.cacheManager = new CacheManager(configuration);
this.cacheSync = new RedisPubSubSync(this);// 使用Redis Topic发送订阅缓存变更消息
内容来源于网络,如有侵权,请联系作者删除!