本文整理了Java中net.sf.ehcache.Cache.firePropertyChange()
方法的一些代码示例,展示了Cache.firePropertyChange()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Cache.firePropertyChange()
方法的具体详情如下:
包路径:net.sf.ehcache.Cache
类名称:Cache
方法名:firePropertyChange
暂无
代码示例来源:origin: net.sf.ehcache/ehcache
/**
* {@inheritDoc}
*
* @see net.sf.ehcache.store.StoreListener#clusterCoherent(boolean)
*/
public void clusterCoherent(boolean clusterCoherent) {
firePropertyChange("ClusterCoherent", !clusterCoherent, clusterCoherent);
}
代码示例来源:origin: net.sf.ehcache/ehcache
/**
* For use by CacheManager.
*
* @param cacheManager the CacheManager for this cache to use.
*/
public void setCacheManager(CacheManager cacheManager) {
CacheManager oldValue = getCacheManager();
this.cacheManager = cacheManager;
firePropertyChange("CacheManager", oldValue, cacheManager);
}
代码示例来源:origin: net.sf.ehcache/ehcache
/**
* Sets the TransactionManagerLookup that needs to be used for this cache to lookup the TransactionManager
* This needs to be set before {@link Cache#initialise()} is called
* @param lookup The {@link net.sf.ehcache.transaction.manager.TransactionManagerLookup} instance
*/
public void setTransactionManagerLookup(TransactionManagerLookup lookup) {
TransactionManagerLookup oldValue = getTransactionManagerLookup();
this.transactionManagerLookup = lookup;
firePropertyChange("TransactionManagerLookup", oldValue, lookup);
}
代码示例来源:origin: net.sf.ehcache/ehcache
/**
* Sets an ExceptionHandler on the Cache. If one is already set, it is overwritten.
* <p>
* The ExceptionHandler is only used if this Cache's methods are accessed using
* {@link net.sf.ehcache.exceptionhandler.ExceptionHandlingDynamicCacheProxy}.
*
* @see net.sf.ehcache.exceptionhandler.ExceptionHandlingDynamicCacheProxy
*/
public void setCacheExceptionHandler(CacheExceptionHandler cacheExceptionHandler) {
CacheExceptionHandler oldValue = getCacheExceptionHandler();
this.cacheExceptionHandler = cacheExceptionHandler;
firePropertyChange("CacheExceptionHandler", oldValue, cacheExceptionHandler);
}
代码示例来源:origin: net.sf.ehcache/ehcache
/**
* {@inheritDoc}
*/
public void setNodeBulkLoadEnabled(boolean enabledBulkLoad) throws UnsupportedOperationException, TerracottaNotRunningException {
final boolean oldValue = isNodeBulkLoadEnabled();
if (oldValue != enabledBulkLoad) {
compoundStore.setNodeCoherent(!enabledBulkLoad);
firePropertyChange("NodeCoherent", oldValue, enabledBulkLoad);
}
}
代码示例来源:origin: net.sf.ehcache/ehcache
/**
* Disables or enables this cache. This call overrides the previous value of disabled, even if the
* <code>net.sf.ehcache.disabled</code> system property is set
*
* @param disabled true if you wish to disable, false to enable
* @see #isDisabled()
*/
public void setDisabled(boolean disabled) {
if (allowDisable) {
boolean oldValue = isDisabled();
if (oldValue != disabled) {
synchronized (this) {
this.disabled = disabled;
}
firePropertyChange("Disabled", oldValue, disabled);
}
} else {
throw new CacheException("Dynamic cache features are disabled");
}
}
代码示例来源:origin: net.sf.ehcache/ehcache
/**
* Sets the eviction policy strategy. The Cache will use a policy at startup. There
* are three policies which can be configured: LRU, LFU and FIFO. However many other
* policies are possible. That the policy has access to the whole element enables policies
* based on the key, value, metadata, statistics, or a combination of any of the above.
* It is safe to change the policy of a store at any time. The new policy takes effect
* immediately.
*
* @param policy the new policy
*/
public void setMemoryStoreEvictionPolicy(Policy policy) {
checkStatus();
Policy oldValue = getMemoryStoreEvictionPolicy();
compoundStore.setInMemoryEvictionPolicy(policy);
firePropertyChange("MemoryStoreEvictionPolicy", oldValue, policy);
}
代码示例来源:origin: net.sf.ehcache/ehcache
/**
* Sets the bootstrap cache loader.
*
* @param bootstrapCacheLoader the loader to be used
* @throws CacheException if this method is called after the cache is initialized
*/
public void setBootstrapCacheLoader(BootstrapCacheLoader bootstrapCacheLoader) throws CacheException {
if (!cacheStatus.isUninitialized()) {
throw new CacheException("A bootstrap cache loader can only be set before the cache is initialized. "
+ configuration.getName());
}
BootstrapCacheLoader oldValue = getBootstrapCacheLoader();
this.bootstrapCacheLoader = bootstrapCacheLoader;
firePropertyChange("BootstrapCacheLoader", oldValue, bootstrapCacheLoader);
}
代码示例来源:origin: net.sf.ehcache.internal/ehcache-core
/**
* {@inheritDoc}
*
* @see net.sf.ehcache.store.StoreListener#clusterCoherent(boolean)
*/
public void clusterCoherent(boolean clusterCoherent) {
firePropertyChange("ClusterCoherent", !clusterCoherent, clusterCoherent);
}
代码示例来源:origin: org.sonatype.nexus.bundles/org.sonatype.nexus.bundles.ehcache
/**
* {@inheritDoc}
*
* @see net.sf.ehcache.store.StoreListener#clusterCoherent(boolean)
*/
public void clusterCoherent(boolean clusterCoherent) {
firePropertyChange("ClusterCoherent", !clusterCoherent, clusterCoherent);
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.ehcache
/**
* {@inheritDoc}
*
* @see net.sf.ehcache.store.StoreListener#clusterCoherent(boolean)
*/
public void clusterCoherent(boolean clusterCoherent) {
firePropertyChange("ClusterCoherent", !clusterCoherent, clusterCoherent);
}
代码示例来源:origin: net.sf.ehcache.internal/ehcache-core
/**
* For use by CacheManager.
*
* @param cacheManager the CacheManager for this cache to use.
*/
public void setCacheManager(CacheManager cacheManager) {
CacheManager oldValue = getCacheManager();
this.cacheManager = cacheManager;
firePropertyChange("CacheManager", oldValue, cacheManager);
}
代码示例来源:origin: org.sonatype.nexus.bundles/org.sonatype.nexus.bundles.ehcache
/**
* Sets the TransactionManagerLookup that needs to be used for this cache to lookup the TransactionManager
* This needs to be set before {@link Cache#initialise()} is called
* @param lookup The {@link net.sf.ehcache.transaction.manager.TransactionManagerLookup} instance
*/
public void setTransactionManagerLookup(TransactionManagerLookup lookup) {
TransactionManagerLookup oldValue = getTransactionManagerLookup();
this.transactionManagerLookup = lookup;
firePropertyChange("TransactionManagerLookup", oldValue, lookup);
}
代码示例来源:origin: org.sonatype.nexus.bundles/org.sonatype.nexus.bundles.ehcache
/**
* For use by CacheManager.
*
* @param cacheManager the CacheManager for this cache to use.
*/
public void setCacheManager(CacheManager cacheManager) {
CacheManager oldValue = getCacheManager();
this.cacheManager = cacheManager;
firePropertyChange("CacheManager", oldValue, cacheManager);
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.ehcache
/**
* Sets the TransactionManagerLookup that needs to be used for this cache to lookup the TransactionManager
* This needs to be set before {@link Cache#initialise()} is called
* @param lookup The {@link net.sf.ehcache.transaction.manager.TransactionManagerLookup} instance
*/
public void setTransactionManagerLookup(TransactionManagerLookup lookup) {
TransactionManagerLookup oldValue = getTransactionManagerLookup();
this.transactionManagerLookup = lookup;
firePropertyChange("TransactionManagerLookup", oldValue, lookup);
}
代码示例来源:origin: net.sf.ehcache.internal/ehcache-core
/**
* Sets the TransactionManagerLookup that needs to be used for this cache to lookup the TransactionManager
* This needs to be set before {@link Cache#initialise()} is called
* @param lookup The {@link net.sf.ehcache.transaction.manager.TransactionManagerLookup} instance
*/
public void setTransactionManagerLookup(TransactionManagerLookup lookup) {
TransactionManagerLookup oldValue = getTransactionManagerLookup();
this.transactionManagerLookup = lookup;
firePropertyChange("TransactionManagerLookup", oldValue, lookup);
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.ehcache
/**
* Sets the statistics accuracy.
*
* @param statisticsAccuracy one of {@link Statistics#STATISTICS_ACCURACY_BEST_EFFORT}, {@link Statistics#STATISTICS_ACCURACY_GUARANTEED}, {@link Statistics#STATISTICS_ACCURACY_NONE}
*/
public void setStatisticsAccuracy(int statisticsAccuracy) {
int oldValue = getStatisticsAccuracy();
if (statisticsAccuracy != oldValue) {
liveCacheStatisticsData.setStatisticsAccuracy(statisticsAccuracy);
firePropertyChange("StatisticsAccuracy", oldValue, statisticsAccuracy);
}
}
代码示例来源:origin: net.sf.ehcache.internal/ehcache-core
/**
* {@inheritDoc}
*/
public void setNodeBulkLoadEnabled(boolean enabledBulkLoad) throws UnsupportedOperationException, TerracottaNotRunningException {
final boolean oldValue = isNodeBulkLoadEnabled();
if (oldValue != enabledBulkLoad) {
compoundStore.setNodeCoherent(!enabledBulkLoad);
firePropertyChange("NodeCoherent", oldValue, enabledBulkLoad);
}
}
代码示例来源:origin: org.sonatype.nexus.bundles/org.sonatype.nexus.bundles.ehcache
/**
* {@inheritDoc}
*/
public void setNodeBulkLoadEnabled(boolean enabledBulkLoad) throws UnsupportedOperationException, TerracottaNotRunningException {
final boolean oldValue = isNodeBulkLoadEnabled();
if (oldValue != enabledBulkLoad) {
compoundStore.setNodeCoherent(!enabledBulkLoad);
firePropertyChange("NodeCoherent", oldValue, enabledBulkLoad);
}
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.ehcache
/**
* {@inheritDoc}
*/
public void setNodeBulkLoadEnabled(boolean enabledBulkLoad) throws UnsupportedOperationException, TerracottaNotRunningException {
final boolean oldValue = isNodeBulkLoadEnabled();
if (oldValue != enabledBulkLoad) {
compoundStore.setNodeCoherent(!enabledBulkLoad);
nonstopActiveDelegateHolder.nodeBulkLoadChanged(enabledBulkLoad);
firePropertyChange("NodeCoherent", oldValue, enabledBulkLoad);
}
}
内容来源于网络,如有侵权,请联系作者删除!