Package org.craftercms.studio.api.v2.dal
Interface RetryingDatabaseOperationFacade
-
- All Known Implementing Classes:
RetryingDatabaseOperationFacadeImpl
public interface RetryingDatabaseOperationFacade
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
retry(Runnable op)
Retries the database operationop
up to the configured maximum retries.<T> T
retry(Supplier<T> op)
Retries the database operationop
up to the configured maximum retries.
-
-
-
Method Detail
-
retry
void retry(Runnable op)
Retries the database operationop
up to the configured maximum retries. SeeRetryingDatabaseOperationAnnotationHandler
- Parameters:
op
- operation to execute
-
retry
<T> T retry(Supplier<T> op)
Retries the database operationop
up to the configured maximum retries. SeeRetryingDatabaseOperationAnnotationHandler
- Parameters:
op
- operation to execute
-
-