Package org.jgroups.util
Class OneTimeAddressGenerator
- java.lang.Object
-
- org.jgroups.util.OneTimeAddressGenerator
-
- All Implemented Interfaces:
AddressGenerator
public class OneTimeAddressGenerator extends java.lang.Object implements AddressGenerator
Implementation ofAddressGenerator
which is configured with an initial value, and after that random values are generated.- Since:
- 3.5
- Author:
- Bela Ban
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
first
protected long
initial_val
-
Constructor Summary
Constructors Constructor Description OneTimeAddressGenerator(long initial_val)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Address
generateAddress()
-
-
-
Method Detail
-
generateAddress
public Address generateAddress()
- Specified by:
generateAddress
in interfaceAddressGenerator
-
-