com.kenshoo.pl.entity.spi.PersistenceLayerRetryer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of persistence-layer Show documentation
Show all versions of persistence-layer Show documentation
A Java persistence layer based on JOOQ for high performance and business flow support.
package com.kenshoo.pl.entity.spi;
import com.google.common.base.Throwables;
public interface PersistenceLayerRetryer {
void run(ThrowingAction action);
PersistenceLayerRetryer JUST_RUN_WITHOUT_CHECKING_DEADLOCKS = action -> {
try {
action.run();
} catch (Exception e) {
Throwables.propagate(e);
}
};
}