public void setRetransmitTimeouts(long[] timeouts) { if(retransmitter != null) retransmitter.setRetransmitTimeouts(timeouts); }
/** * Creates a new instance. Thre retransmission thread has to be started separately with * <code>start()</code>. * @param com If not null, its method <code>retransmit()</code> will be called when a message * needs to be retransmitted (called by the Retransmitter). */ public AckSenderWindow(RetransmitCommand com) { retransmit_command = com; retransmitter = new Retransmitter(null, this); retransmitter.setRetransmitTimeouts(interval); }
public AckSenderWindow(RetransmitCommand com, long[] interval) { retransmit_command = com; this.interval = interval; retransmitter = new Retransmitter(null, this); retransmitter.setRetransmitTimeouts(interval); }
public AckSenderWindow(RetransmitCommand com, long[] interval, TimeScheduler sched) { retransmit_command = com; this.interval = interval; retransmitter = new Retransmitter(null, this, sched); retransmitter.setRetransmitTimeouts(interval); }