public class CounterConfig
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private long |
initialValue |
Constructor and Description |
---|
CounterConfig(long initialValue)
Creates a config with the initial value
|
Modifier and Type | Method and Description |
---|---|
Counter |
createCounter()
Creates and returns a Counter based on the initial value
|
long |
getInitialValue()
Gets the initial value
|
public CounterConfig(long initialValue)
initialValue
- public final long getInitialValue()
public Counter createCounter()