org.infinispan.jcache.FailureEntryProcessorResult Maven / Gradle / Ivy
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