Class ConcurrencyUtils
java.lang.Object
com.linkedin.venice.utils.concurrent.ConcurrencyUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
executeUnderConditionalLock
(Runnable action, BooleanSupplier lockCondition, Object lock) static void
executeUnderLock
(Runnable action, Runnable orElse, BooleanSupplier lockCondition, Object lock)
-
Method Details
-
executeUnderConditionalLock
public static void executeUnderConditionalLock(Runnable action, BooleanSupplier lockCondition, Object lock) -
executeUnderLock
public static void executeUnderLock(Runnable action, Runnable orElse, BooleanSupplier lockCondition, Object lock)
-