org.jgroups.stack
Class Retransmitter.Task
java.lang.Object
org.jgroups.stack.Retransmitter.Task
- All Implemented Interfaces:
- java.lang.Runnable, TimeScheduler.Task
- Direct Known Subclasses:
- DefaultRetransmitter.SeqnoTask, RangeBasedRetransmitter.RangeTask
- Enclosing class:
- Retransmitter
protected abstract class Retransmitter.Task
- extends java.lang.Object
- implements TimeScheduler.Task
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
intervals
protected final Interval intervals
future
protected volatile java.util.concurrent.Future future
msg_sender
protected Address msg_sender
command
protected Retransmitter.RetransmitCommand command
cancelled
protected volatile boolean cancelled
Retransmitter.Task
protected Retransmitter.Task(Interval intervals,
Retransmitter.RetransmitCommand cmd,
Address msg_sender)
nextInterval
public long nextInterval()
- Specified by:
nextInterval
in interface TimeScheduler.Task
- Returns:
- the next scheduled interval in ms. If <= 0 the task will not be re-scheduled
doSchedule
public void doSchedule()
cancel
public void cancel()
run
public void run()
- Specified by:
run
in interface java.lang.Runnable
callRetransmissionCommand
protected abstract void callRetransmissionCommand()
Copyright © 1998-2012 Bela Ban / Red Hat. All Rights Reserved.