net.sf.ehcache.Cache.initialiseCacheWriterManager()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(4.6k)|赞(0)|评价(0)|浏览(108)

本文整理了Java中net.sf.ehcache.Cache.initialiseCacheWriterManager()方法的一些代码示例,展示了Cache.initialiseCacheWriterManager()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Cache.initialiseCacheWriterManager()方法的具体详情如下:
包路径:net.sf.ehcache.Cache
类名称:Cache
方法名:initialiseCacheWriterManager

Cache.initialiseCacheWriterManager介绍

[英]The CacheWriterManager's initialisation can be deferred until an actual CacheWriter has been registered.

This allows users to register a cache through XML in the cache manager and still specify the CacheWriter manually through Java code, possibly referencing local resources.
[中]CacheWriterManager的初始化可以推迟到注册了实际的CacheWriter之后。
这允许用户通过缓存管理器中的XML注册缓存,并且仍然可以通过Java代码(可能是引用本地资源)手动指定CacheWriter。

代码示例

代码示例来源:origin: net.sf.ehcache/ehcache

/**
 * {@inheritDoc}
 */
public void registerCacheWriter(CacheWriter cacheWriter) {
  synchronized (this) {
    this.registeredCacheWriter = cacheWriter;
    if (cacheStatus.isAlive()) {
      initialiseRegisteredCacheWriter();
    }
  }
  initialiseCacheWriterManager(false);
}

代码示例来源:origin: net.sf.ehcache/ehcache

initialiseCacheWriterManager(true);

代码示例来源:origin: net.sf.ehcache/ehcache

private void putInternal(Element element, boolean doNotNotifyCacheReplicators, boolean useCacheWriter) {
  putObserver.begin();
  if (useCacheWriter) {
    initialiseCacheWriterManager(true);

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.ehcache

/**
 * Complete cluster rejoin
 */
void clusterRejoinComplete() {
  // initialize again
  initialise();
  if (cacheWriterManagerInitFlag.compareAndSet(true, false)) {
    initialiseCacheWriterManager(registeredCacheWriter != null);
  }
  cacheStatus.clusterRejoinComplete();
  if (compoundStore instanceof RejoinAwareNonstopStore) {
    ((RejoinAwareNonstopStore) compoundStore).clusterRejoined();
  }
}

代码示例来源:origin: org.sonatype.nexus.bundles/org.sonatype.nexus.bundles.ehcache

/**
 * {@inheritDoc}
 */
public void registerCacheWriter(CacheWriter cacheWriter) {
  synchronized (this) {
    this.registeredCacheWriter = cacheWriter;
    if (cacheStatus.isAlive()) {
      initialiseRegisteredCacheWriter();
    }
  }
  initialiseCacheWriterManager(false);
}

代码示例来源:origin: net.sf.ehcache.internal/ehcache-core

/**
 * {@inheritDoc}
 */
public void registerCacheWriter(CacheWriter cacheWriter) {
  synchronized (this) {
    this.registeredCacheWriter = cacheWriter;
    if (cacheStatus.isAlive()) {
      initialiseRegisteredCacheWriter();
    }
  }
  initialiseCacheWriterManager(false);
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.ehcache

/**
 * {@inheritDoc}
 */
public void registerCacheWriter(CacheWriter cacheWriter) {
  synchronized (this) {
    this.registeredCacheWriter = cacheWriter;
    if (cacheStatus.isAlive()) {
      initialiseRegisteredCacheWriter();
    }
  }
  initialiseCacheWriterManager(false);
}

代码示例来源:origin: net.sf.ehcache/ehcache

cacheStatus.changeState(Status.STATUS_ALIVE);
initialiseRegisteredCacheWriter();
initialiseCacheWriterManager(false);
initialiseRegisteredCacheExtensions();
initialiseRegisteredCacheLoaders();

代码示例来源:origin: net.sf.ehcache.internal/ehcache-core

initialiseCacheWriterManager(true);

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.ehcache

initialiseCacheWriterManager(true);

代码示例来源:origin: org.sonatype.nexus.bundles/org.sonatype.nexus.bundles.ehcache

initialiseCacheWriterManager(true);

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.ehcache

private void putInternal(Element element, boolean doNotNotifyCacheReplicators, boolean useCacheWriter) {
  if (useCacheWriter) {
    initialiseCacheWriterManager(true);

代码示例来源:origin: net.sf.ehcache.internal/ehcache-core

private void putInternal(Element element, boolean doNotNotifyCacheReplicators, boolean useCacheWriter) {
  putObserver.begin();
  if (useCacheWriter) {
    initialiseCacheWriterManager(true);

代码示例来源:origin: org.sonatype.nexus.bundles/org.sonatype.nexus.bundles.ehcache

private void putInternal(Element element, boolean doNotNotifyCacheReplicators, boolean useCacheWriter) {
  putObserver.begin();
  if (useCacheWriter) {
    initialiseCacheWriterManager(true);

代码示例来源:origin: net.sf.ehcache.internal/ehcache-core

cacheStatus.changeState(Status.STATUS_ALIVE);
initialiseRegisteredCacheWriter();
initialiseCacheWriterManager(false);
initialiseRegisteredCacheExtensions();
initialiseRegisteredCacheLoaders();

代码示例来源:origin: org.sonatype.nexus.bundles/org.sonatype.nexus.bundles.ehcache

cacheStatus.changeState(Status.STATUS_ALIVE);
initialiseRegisteredCacheWriter();
initialiseCacheWriterManager(false);
initialiseRegisteredCacheExtensions();
initialiseRegisteredCacheLoaders();

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.ehcache

cacheStatus.changeState(Status.STATUS_ALIVE);
initialiseRegisteredCacheWriter();
initialiseCacheWriterManager(false);
initialiseRegisteredCacheExtensions();
initialiseRegisteredCacheLoaders();

相关文章

Cache类方法