/** * {@inheritDoc} */ public void start(final CacheWriter writer) throws CacheException { writeLock.lock(); try { for (WriteBehind queue : queues) { queue.start(writer); } } finally { writeLock.unlock(); } }
@Override public void start(CacheWriter writerParam) throws CacheException { lock.writeLock().lock(); try { if (delegate == null) { isStarted = true; NonStopWriteBehind.this.writer = writerParam; return; } } finally { lock.writeLock().unlock(); } delegate.start(writerParam); }
/** * * @param writeBehind */ public void init(WriteBehind writeBehind) { lock.writeLock().lock(); try { delegate = writeBehind; if (isStarted) { delegate.start(writer); } if (filter != null) { delegate.setOperationsFilter(filter); } if (isStopped) { delegate.stop(); } } finally { lock.writeLock().unlock(); } }
/** * {@inheritDoc} */ public void init(Cache cache) throws CacheException { CacheWriter cacheWriter = cache.getRegisteredCacheWriter(); if (null == cacheWriter) { throw new CacheException("No cache writer was registered for cache " + cache.getName()); } if (cache.getCacheConfiguration().getCacheWriterConfiguration().getWriteCoalescing()) { writeBehind.setOperationsFilter(new CoalesceKeysFilter()); } writeBehind.start(cacheWriter); }
/** * {@inheritDoc} */ public void start(final CacheWriter writer) throws CacheException { writeLock.lock(); try { for (WriteBehind queue : queues) { queue.start(writer); } } finally { writeLock.unlock(); } }
/** * {@inheritDoc} */ public void start(final CacheWriter writer) throws CacheException { writeLock.lock(); try { for (WriteBehind queue : queues) { queue.start(writer); } } finally { writeLock.unlock(); } }
/** * {@inheritDoc} */ public void start(final CacheWriter writer) throws CacheException { writeLock.lock(); try { for (WriteBehind queue : queues) { queue.start(writer); } } finally { writeLock.unlock(); } }
@Override public void start(CacheWriter writerParam) throws CacheException { lock.writeLock().lock(); try { if (delegate == null) { isStarted = true; NonStopWriteBehind.this.writer = writerParam; return; } } finally { lock.writeLock().unlock(); } delegate.start(writerParam); }
@Override public void start(CacheWriter writerParam) throws CacheException { lock.writeLock().lock(); try { if (delegate == null) { isStarted = true; NonStopWriteBehind.this.writer = writerParam; return; } } finally { lock.writeLock().unlock(); } delegate.start(writerParam); }
/** * * @param writeBehind */ public void init(WriteBehind writeBehind) { lock.writeLock().lock(); try { delegate = writeBehind; if (isStarted) { delegate.start(writer); } if (filter != null) { delegate.setOperationsFilter(filter); } if (isStopped) { delegate.stop(); } } finally { lock.writeLock().unlock(); } }
/** * * @param writeBehind */ public void init(WriteBehind writeBehind) { lock.writeLock().lock(); try { delegate = writeBehind; if (isStarted) { delegate.start(writer); } if (filter != null) { delegate.setOperationsFilter(filter); } if (isStopped) { delegate.stop(); } } finally { lock.writeLock().unlock(); } }
/** * {@inheritDoc} */ public void init(Cache cache) throws CacheException { CacheWriter cacheWriter = cache.getRegisteredCacheWriter(); if (null == cacheWriter) { throw new CacheException("No cache writer was registered for cache " + cache.getName()); } if (cache.getCacheConfiguration().getCacheWriterConfiguration().getWriteCoalescing()) { writeBehind.setOperationsFilter(new CoalesceKeysFilter()); } writeBehind.start(cacheWriter); }
/** * {@inheritDoc} */ public void init(Cache cache) throws CacheException { CacheWriter cacheWriter = cache.getRegisteredCacheWriter(); if (null == cacheWriter) { throw new CacheException("No cache writer was registered for cache " + cache.getName()); } if (cache.getCacheConfiguration().getCacheWriterConfiguration().getWriteCoalescing()) { writeBehind.setOperationsFilter(new CoalesceKeysFilter()); } writeBehind.start(cacheWriter); }
/** * {@inheritDoc} */ public void init(Cache cache) throws CacheException { CacheWriter cacheWriter = cache.getRegisteredCacheWriter(); if (null == cacheWriter) { throw new CacheException("No cache writer was registered for cache " + cache.getName()); } if (cache.getCacheConfiguration().getCacheWriterConfiguration().getWriteCoalescing()) { writeBehind.setOperationsFilter(new CoalesceKeysFilter()); } writeBehind.start(cacheWriter); }