/** {@inheritDoc} */
 public void remove(CacheEntry entry) throws CacheException {
   try {
     CacheWriter writer = cache.getRegisteredCacheWriter();
     if (writer != null) {
       writer.delete(entry);
     }
   } catch (RuntimeException e) {
     throw new CacheWriterManagerException(e);
   }
 }
 /** {@inheritDoc} */
 public void put(Element element) throws CacheException {
   try {
     CacheWriter writer = cache.getRegisteredCacheWriter();
     if (writer != null) {
       writer.write(element);
     }
   } catch (RuntimeException e) {
     throw new CacheWriterManagerException(e);
   }
 }
Beispiel #3
0
 /** {@inheritDoc} */
 public void throwAway(final CacheWriter cacheWriter, final RuntimeException e) {
   cacheWriter.throwAway(element, SingleOperationType.WRITE, e);
 }
Beispiel #4
0
 /** {@inheritDoc} */
 public void performSingleOperation(CacheWriter cacheWriter) {
   cacheWriter.write(element);
 }