Class HConcurrent


  • public final class HConcurrent
    extends Object
    • Method Detail

      • sync

        public static <I> void sync​(Consumer<I> consumer,
                                    I input,
                                    Object lock)
      • sync

        public static <I,​O> O sync​(Function<I,​O> function,
                                         I input,
                                         Object lock)
      • sync

        public static <O> O sync​(Supplier<O> supplier,
                                 Object lock)
      • wait

        public static void wait​(int millis)
      • wait

        public static void wait​(Object object,
                                int millis)