public static void warnOnLockCycles() { setPolicy(CycleDetectingLockFactory.Policies.WARN); }
public static void throwOnLockCycles() { setPolicy(CycleDetectingLockFactory.Policies.THROW); }
public static void ignoreLockCycles() { setPolicy(CycleDetectingLockFactory.Policies.DISABLED); }
public static void setPolicy(CycleDetectingLockFactory.Policy policy) { Threading.policy = policy; factory = CycleDetectingLockFactory.newInstance(policy); }
public static CycleDetectingLockFactory.Policy getPolicy() { return policy; }
public static void setPolicy(CycleDetectingLockFactory.Policy policy) { Locks.policy = policy; factory = CycleDetectingLockFactory.newInstance(policy); }