All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.infinispan.jcache.FailureEntryProcessorResult Maven / Gradle / Ivy

There is a newer version: 9.1.7.Final
Show newest version
package org.infinispan.jcache;

import org.infinispan.jcache.logging.Log;
import org.infinispan.util.logging.LogFactory;

import javax.cache.processor.EntryProcessorException;
import javax.cache.processor.EntryProcessorResult;

/**
 * Failure entry processor result wrapper.
 *
 * @author Galder Zamarreño
 */
public class FailureEntryProcessorResult implements EntryProcessorResult {

   private static final Log log = LogFactory.getLog(FailureEntryProcessorResult.class, Log.class);

   private final Throwable t;

   public FailureEntryProcessorResult(Throwable t) {
      this.t = t;
   }

   @Override
   public T get() throws EntryProcessorException {
      throw log.entryProcessingFailed(t);
   }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy