SingleTimedScheduler(ThreadFactory threadFactory){
  ScheduledThreadPoolExecutor e=(ScheduledThreadPoolExecutor)Executors.newScheduledThreadPool(1,threadFactory);
  e.setRemoveOnCancelPolicy(true);
  executor=e;
}

SingleTimedScheduler ( ThreadFactory threadFactory ) { ScheduledThreadPoolExecutor e = ( ScheduledThreadPoolExecutor ) Executors . newScheduledThreadPool ( 1 , threadFactory ) ; e . setRemoveOnCancelPolicy ( true ) ; executor = e ; }
constructs a new singletimedscheduler with the given thread factory .
