Uses of Interface
org.broadleafcommerce.common.util.GenericOperation
Packages that use GenericOperation
-
Uses of GenericOperation in org.broadleafcommerce.common.util
Methods in org.broadleafcommerce.common.util with parameters of type GenericOperationModifier and TypeMethodDescriptionstatic <R> R
GenericOperationUtil.executeRetryableOperation
(GenericOperation<R> operation) Executes the provided operation up to 5 times if there are exceptions, waiting an additive 100 ms between tries.static <R> R
GenericOperationUtil.executeRetryableOperation
(GenericOperation<R> operation, int retries, long waitTime, boolean isWaitTimesAdditive, Class<? extends Exception>[] noRetriesForException) Executes the provided operation up to as many times as the retries argument.static <R> R
GenericOperationUtil.executeRetryableOperation
(GenericOperation<R> operation, Class<? extends Exception>[] noRetriesForException) Executes the provided operation up to 5 times if there are exceptions, waiting an additive 100 ms between tries.static <T> T
HibernateUtils.executeWithCache
(GenericOperation<T> operation) Attempts to execute the operation with L2 and query cache engaged.static <T> T
HibernateUtils.executeWithCache
(GenericOperation<T> operation, jakarta.persistence.EntityManager em) During bulk operations such as reindexing we occasionally want things to be cached.static <T> T
HibernateUtils.executeWithCache
(GenericOperation<T> operation, String persistenceUnitName) Attempts to execute the operation with L2 and query cache engaged.static <T> T
HibernateUtils.executeWithoutCache
(GenericOperation<T> operation) Attempts to execute the operation without L2 or query cache engaged.static <T> T
HibernateUtils.executeWithoutCache
(GenericOperation<T> operation, jakarta.persistence.EntityManager em) During bulk operations such as reindexing we don't always want things to be cached.static <T> T
HibernateUtils.executeWithoutCache
(GenericOperation<T> operation, String persistenceUnitName) Attempts to execute the operation without L2 or query cache engaged. -
Uses of GenericOperation in org.broadleafcommerce.core.util.queue
Methods in org.broadleafcommerce.core.util.queue with parameters of type GenericOperationModifier and TypeMethodDescriptionprotected <R> R
ZookeeperDistributedQueue.executeOperation
(GenericOperation<R> operation) Allows us to execute retry-able operations.