public interface AtomicCounterBuilder
| Modifier and Type | Method and Description |
|---|---|
AtomicCounter |
build()
Builds a AtomicCounter based on the configuration options
supplied to this builder.
|
AsyncAtomicCounter |
buildAsyncCounter()
Builds a AsyncAtomicCounter based on the configuration options
supplied to this builder.
|
AtomicCounterBuilder |
withMeteringDisabled()
Instantiates Metering service to gather usage and performance metrics.
|
AtomicCounterBuilder |
withName(String name)
Sets the name for the atomic counter.
|
AtomicCounterBuilder |
withPartitionsDisabled()
Creates this counter on the partition that spans the entire cluster.
|
AtomicCounterBuilder withName(String name)
Each atomic counter is identified by a unique name.
Note: This is a mandatory parameter.
name - name of the atomic counterAtomicCounterBuilder 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.
AtomicCounterBuilder withMeteringDisabled()
AtomicCounter build()
RuntimeException - if a mandatory parameter is missingAsyncAtomicCounter buildAsyncCounter()
RuntimeException - if a mandatory parameter is missingCopyright © 2015. All rights reserved.