V - atomic value typepublic interface AtomicValueBuilder<V>
| Modifier and Type | Method and Description |
|---|---|
AtomicValue<V> |
build()
Builds a AtomicValue based on the configuration options
supplied to this builder.
|
AtomicValueBuilder<V> |
withMeteringDisabled()
Instantiates Metering service to gather usage and performance metrics.
|
AtomicValueBuilder<V> |
withName(String name)
Sets the name for the atomic value.
|
AtomicValueBuilder<V> |
withPartitionsDisabled()
Creates this atomic value on the partition that spans the entire cluster.
|
AtomicValueBuilder<V> |
withSerializer(Serializer serializer)
Sets a serializer that can be used to serialize the value.
|
AtomicValueBuilder<V> withName(String name)
Each atomic value is identified by a unique name.
Note: This is a mandatory parameter.
name - name of the atomic valueAtomicValueBuilder<V> withSerializer(Serializer serializer)
Note: This is a mandatory parameter.
serializer - serializerAtomicValueBuilder<V> withPartitionsDisabled()
When partitioning is disabled, the value state will be ephemeral and does not survive a full cluster restart.
Note: By default partitions are enabled.
AtomicValueBuilder<V> withMeteringDisabled()
AtomicValue<V> build()
RuntimeException - if a mandatory parameter is missingCopyright © 2015. All rights reserved.