try {
if (stopping || stopped) {
throw new CacheException("The element '" + element + "' couldn't be added through the write-behind queue for cache '"
+ cacheName + "' since it's not started.");
}
waiting.add(new WriteOperation(element));
if (waiting.size() + 1 < maxQueueSize) {
queueIsFull.signal();
}
queueIsEmpty.signal();
} finally {