Class ConcurrencyUtils
- java.lang.Object
-
- com.linkedin.venice.utils.concurrent.ConcurrencyUtils
-
public final class ConcurrencyUtils extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
executeUnderConditionalLock(java.lang.Runnable action, java.util.function.BooleanSupplier lockCondition, java.lang.Object lock)
static void
executeUnderLock(java.lang.Runnable action, java.lang.Runnable orElse, java.util.function.BooleanSupplier lockCondition, java.lang.Object lock)
-
-
-
Method Detail
-
executeUnderConditionalLock
public static void executeUnderConditionalLock(java.lang.Runnable action, java.util.function.BooleanSupplier lockCondition, java.lang.Object lock)
-
executeUnderLock
public static void executeUnderLock(java.lang.Runnable action, java.lang.Runnable orElse, java.util.function.BooleanSupplier lockCondition, java.lang.Object lock)
-
-