public interface CounterConfigurationBuilder<T extends AbstractCounterConfiguration,S extends CounterConfigurationBuilder<T,S>> extends Builder<T>, Self<S>
It allows to configure the name, initial value and the Storage mode. The counter's name is required.
| Modifier and Type | Method and Description |
|---|---|
StrongCounterConfigurationBuilder |
addStrongCounter() |
WeakCounterConfigurationBuilder |
addWeakCounter() |
S |
initialValue(long initialValue)
Sets the counter's initial value.
|
S |
name(String name)
Sets the counter's name.
|
S |
storage(Storage mode)
Sets the counter's storage mode.
|
S name(String name)
This attribute is required.
name - the counter's name.S initialValue(long initialValue)
Default value is zero.
initialValue - the counter's initial value.S storage(Storage mode)
Default value is Storage.VOLATILE.
mode - the counter's storage mode.StorageStrongCounterConfigurationBuilder addStrongCounter()
WeakCounterConfigurationBuilder addWeakCounter()
Copyright © 2018 JBoss, a division of Red Hat. All rights reserved.