/** {@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);
   }
 }
Exemple #2
0
 /** {@inheritDoc} */
 public void performSingleOperation(CacheWriter cacheWriter) {
   cacheWriter.write(element);
 }