Package dev.enola.data
Class OptimisticLockingExceptionRetrier
java.lang.Object
dev.enola.data.OptimisticLockingExceptionRetrier
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<E extends Exception>
voidretry(CheckedRunnable<E> action) Retry.
-
Constructor Details
-
OptimisticLockingExceptionRetrier
public OptimisticLockingExceptionRetrier()
-
-
Method Details
-
retry
public <E extends Exception> void retry(CheckedRunnable<E> action) throws E, OptimisticLockingException Retry.- Type Parameters:
E- Exception supertype which that Action may throw- Parameters:
action- Action to try (and retry) running- Throws:
E- re-thrown the Action itself threw itOptimisticLockingException- thrown if maximum retries have been reached
-