public interface AtomicCounterMapBuilder<K>
| Modifier and Type | Method and Description |
|---|---|
AtomicCounterMap<K> |
build()
Builds a AtomicCounterMap based on the configuration options
supplied to this builder.
|
AsyncAtomicCounterMap<K> |
buildAsyncAtomicCounterMap()
Builds a AsyncAtomicCounterMap based on the configuration options
supplied to this builder.
|
AtomicCounterMapBuilder<K> |
withMeteringDisabled()
Instantiates Metering service to gather usage and performance metrics.
|
AtomicCounterMapBuilder<K> |
withName(String name)
Sets the name for the atomic counter map.
|
AtomicCounterMapBuilder<K> |
withPartitionsDisabled()
Creates this counter map on the partition that spans the entire cluster.
|
AtomicCounterMapBuilder<K> withName(String name)
Each atomic counter map is identified by a unique name.
Note: This is a mandatory parameter.
name - name of the atomic counterAtomicCounterMapBuilder<K> withPartitionsDisabled()
When partitioning is disabled, the counter state will be ephemeral and does not survive a full cluster restart.
Note: By default partitions are enabled.
AtomicCounterMapBuilder<K> withMeteringDisabled()
AtomicCounterMap<K> build()
RuntimeException - if a mandatory parameter is missingAsyncAtomicCounterMap<K> buildAsyncAtomicCounterMap()
RuntimeException - if a mandatory parameter is missing