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