Class StaticInterval

java.lang.Object
org.jgroups.stack.StaticInterval
All Implemented Interfaces:
Interval

public class StaticInterval extends Object implements Interval
Manages retransmission timeouts. Always returns the next timeout, until the last timeout in the array is reached. Returns the last timeout from then on. Note that this class is invalid input: '<'em?not immutable, so it shouldn't be shared between instances, as next() will modify the state.
Version:
$Id: StaticInterval.java,v 1.3 2007/08/10 12:47:38 belaban Exp $
Author:
John Giorgiadis, Bela Ban
  • Constructor Details

    • StaticInterval

      public StaticInterval(long... vals)
  • Method Details

    • copy

      public Interval copy()
      Description copied from interface: Interval
      Returns a copy of the state. If there is no state, this method may return a ref to itself
      Specified by:
      copy in interface Interval
    • next

      public long next()
      Specified by:
      next in interface Interval
      Returns:
      the next interval