/** {@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);
   }
 }
Exemplo n.º 3
0
 /** {@inheritDoc} */
 public void throwAway(final CacheWriter cacheWriter, final RuntimeException e) {
   cacheWriter.throwAway(element, SingleOperationType.WRITE, e);
 }
Exemplo n.º 4
0
 /** {@inheritDoc} */
 public void performSingleOperation(CacheWriter cacheWriter) {
   cacheWriter.write(element);
 }