Package org.jgroups.stack
Class StaticInterval
- java.lang.Object
-
- org.jgroups.stack.StaticInterval
-
- All Implemented Interfaces:
Interval
public class StaticInterval extends java.lang.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 immutable, so it shouldn't be shared between instances, asnext()
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 Summary
Constructors Constructor Description StaticInterval(long... vals)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Interval
copy()
Returns a copy of the state.long
next()
-