org.infinispan.xsite.AbstractCustomFailurePolicy Maven / Gradle / Ivy
package org.infinispan.xsite;
import java.util.Map;
import jakarta.transaction.Transaction;
import org.infinispan.Cache;
import org.infinispan.configuration.cache.CustomFailurePolicy;
/**
* Support class for {@link CustomFailurePolicy}.
*
* @author Mircea Markus
* @since 5.2
*/
public abstract class AbstractCustomFailurePolicy implements CustomFailurePolicy {
protected volatile Cache cache;
@Override
public void init(Cache cache) {
this.cache = cache;
}
@Override
public void handlePutFailure(String site, K key, V value, boolean putIfAbsent) {
}
@Override
public void handleRemoveFailure(String site, K key, V oldValue) {
}
@Override
public void handleReplaceFailure(String site, K key, V oldValue, V newValue) {
}
@Override
public void handleClearFailure(String site) {
}
@Override
public void handlePutAllFailure(String site, Map map) {
}
@Override
public void handlePrepareFailure(String site, Transaction transaction) {
}
@Override
public void handleRollbackFailure(String site, Transaction transaction) {
}
@Override
public void handleCommitFailure(String site, Transaction transaction) {
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy