org.jgroups.stack
Class Retransmitter.Task

java.lang.Object
  extended by 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


Field Summary
protected  boolean cancelled
           
protected  Retransmitter.RetransmitCommand command
           
protected  java.util.concurrent.Future future
           
protected  Interval intervals
           
protected  Address msg_sender
           
 
Constructor Summary
protected Retransmitter.Task(Interval intervals, Retransmitter.RetransmitCommand cmd, Address msg_sender)
           
 
Method Summary
protected abstract  void callRetransmissionCommand()
           
 void cancel()
           
 void doSchedule()
           
 long nextInterval()
           
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

Retransmitter.Task

protected Retransmitter.Task(Interval intervals,
                             Retransmitter.RetransmitCommand cmd,
                             Address msg_sender)
Method Detail

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.