Class 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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)