Package | Description |
---|---|
org.broadleafcommerce.common.util | |
org.broadleafcommerce.core.util.queue |
Modifier and Type | Method and Description |
---|---|
static <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,
Class<? extends Exception>[] noRetriesForException)
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 <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,
javax.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.
|
Modifier and Type | Method and Description |
---|---|
protected <R> R |
ZookeeperDistributedQueue.executeOperation(GenericOperation<R> operation)
Allows us to execute retry-able operations.
|
Copyright © 2022. All rights reserved.