public boolean awaitUntil(Date deadline) throws InterruptedException { if (deadline == null) throw new NullPointerException(); long abstime = deadline.getTime(); long start = System.currentTimeMillis(); long msecs = abstime - start; return await(msecs, TimeUnit.MILLISECONDS); }
public boolean awaitUntil(Date deadline) throws InterruptedException { if (deadline == null) throw new NullPointerException(); long abstime = deadline.getTime(); long start = System.currentTimeMillis(); long msecs = abstime - start; return await(msecs, TimeUnit.MILLISECONDS); }
public boolean awaitUntil(Date deadline) throws InterruptedException { if (deadline == null) throw new NullPointerException(); long abstime = deadline.getTime(); long start = System.currentTimeMillis(); long msecs = abstime - start; return await(msecs, TimeUnit.MILLISECONDS); }