private TimeScheduler createTimer() { ThreadFactory factory=new ThreadFactory() { public Thread newThread(Runnable command) { Thread thread=new Thread(timer_thread_group, command, TIMER_NAME); thread.setDaemon(true); renameThread(TIMER_NAME, thread); return thread; } }; return new TimeScheduler(factory); }
/** * Create and <b>start</b> the retransmitter * @param cmd the callback object for retranmissions * @param retransmit_intervals the interval between two consecutive * retransmission attempts * @throws IllegalArgumentException if <code>cmd</code> is null */ public AckMcastSenderWindow(RetransmitCommand cmd, long[] retransmit_intervals) { init(cmd, retransmit_intervals, new TimeScheduler(), true); }
/** * Create a new Retransmitter associated with the given sender address * @param sender the address from which retransmissions are expected or to which retransmissions are sent * @param cmd the retransmission callback reference */ public Retransmitter(Address sender, RetransmitCommand cmd) { init(sender, cmd, new TimeScheduler(), true); }