/** * {@inheritDoc} */ public void dispose() { /* If WriteBehind is configured but no writer is registered, writeBehind will be null */ if (writeBehind != null) { writeBehind.stop(); } }
/** * {@inheritDoc} */ public void stop() throws CacheException { writeLock.lock(); try { for (WriteBehind queue : queues) { queue.stop(); } } finally { writeLock.unlock(); } }
@Override public void stop() throws CacheException { lock.writeLock().lock(); try { if (delegate == null) { isStopped = true; return; } } finally { lock.writeLock().unlock(); } delegate.stop(); }
/** * * @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 dispose() { /* If WriteBehind is configured but no writer is registered, writeBehind will be null */ if (writeBehind != null) { writeBehind.stop(); } }
/** * {@inheritDoc} */ public void dispose() { /* If WriteBehind is configured but no writer is registered, writeBehind will be null */ if (writeBehind != null) { writeBehind.stop(); } }
/** * {@inheritDoc} */ public void dispose() { /* If WriteBehind is configured but no writer is registered, writeBehind will be null */ if (writeBehind != null) { writeBehind.stop(); } }
/** * {@inheritDoc} */ public void stop() throws CacheException { writeLock.lock(); try { for (WriteBehind queue : queues) { queue.stop(); } } finally { writeLock.unlock(); } }
/** * {@inheritDoc} */ public void stop() throws CacheException { writeLock.lock(); try { for (WriteBehind queue : queues) { queue.stop(); } } finally { writeLock.unlock(); } }
/** * {@inheritDoc} */ public void stop() throws CacheException { writeLock.lock(); try { for (WriteBehind queue : queues) { queue.stop(); } } finally { writeLock.unlock(); } }
@Override public void stop() throws CacheException { lock.writeLock().lock(); try { if (delegate == null) { isStopped = true; return; } } finally { lock.writeLock().unlock(); } delegate.stop(); }
@Override public void stop() throws CacheException { lock.writeLock().lock(); try { if (delegate == null) { isStopped = true; return; } } finally { lock.writeLock().unlock(); } delegate.stop(); }
/** * * @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(); } }