public static void main(String[] args) throws Exception { BudgetWrapper bw = new BudgetWrapper(null); // bw.setLocked(true, "renzo"); Thread.sleep(6001); System.out.println("expired: " + bw.isLockExpired()); }
public BudgetWrapper GetBudgetUnlocked() { BudgetWrapper unlockedBudget = new BudgetWrapper(this.budgetKey); unlockedBudget.setLocked(false, "", new BigDecimal(0)); return unlockedBudget; }