Class Synchronized

java.lang.Object
org.aksw.jena_sparql_api.concurrent.util.Synchronized

public class Synchronized extends Object
  • Constructor Details

    • Synchronized

      public Synchronized()
  • Method Details

    • on

      public static void on(Object syncObj, Supplier<Boolean> condition, AutoCloseable action) throws Exception
      Helper that checks the condition before a synchronized block and once it is entered.
      Parameters:
      syncObj -
      condition -
      action -
      Throws:
      Exception