Lines Matching refs:unit
169 public long getDelay(TimeUnit unit) {
171 return d<=0? 0 : unit.convert(d, TimeUnit.NANOSECONDS);
390 private static long nextTriggerTime(long delay, TimeUnit unit) {
395 else if ((triggerTime = now + unit.toNanos(delay)) < 0)
407 TimeUnit unit) {
408 if (command == null || unit == null)
410 long triggerTime = nextTriggerTime(delay, unit);
423 TimeUnit unit) {
424 if (callable == null || unit == null)
426 long triggerTime = nextTriggerTime(delay, unit);
441 TimeUnit unit) {
442 if (command == null || unit == null)
447 long triggerTime = nextTriggerTime(initialDelay, unit);
452 unit.toNanos(period));
466 TimeUnit unit) {
467 if (command == null || unit == null)
471 long triggerTime = nextTriggerTime(initialDelay, unit);
476 unit.toNanos(-delay));
895 public boolean offer(Runnable e, long timeout, TimeUnit unit) {
962 public ScheduledFutureTask poll(long timeout, TimeUnit unit)
964 long nanos = unit.toNanos(timeout);