V - value typepublic class DefaultAtomicValueBuilder<V> extends AtomicValueBuilder<V>
| Constructor and Description |
|---|
DefaultAtomicValueBuilder(Supplier<ConsistentMapBuilder<String,byte[]>> mapBuilderSupplier) |
| Modifier and Type | Method and Description |
|---|---|
AsyncAtomicValue<V> |
build()
Constructs an instance of the distributed primitive.
|
AtomicValueBuilder<V> |
withExecutorSupplier(Supplier<Executor> executorSupplier)
Sets the supplier to be used to create executors.
|
applicationId, executorSupplier, meteringEnabled, name, partitionsDisabled, readOnly, relaxedReadConsistency, serializer, type, withApplicationId, withExecutor, withMeteringDisabled, withName, withRelaxedReadConsistency, withSerializer, withUpdatesDisabledpublic DefaultAtomicValueBuilder(Supplier<ConsistentMapBuilder<String,byte[]>> mapBuilderSupplier)
public AtomicValueBuilder<V> withExecutorSupplier(Supplier<Executor> executorSupplier)
DistributedPrimitiveBuilderWhen a factory is set, the supplier will be used to create a separate executor for each partition.
withExecutorSupplier in class DistributedPrimitiveBuilder<AtomicValueBuilder<V>,AsyncAtomicValue<V>>executorSupplier - the executor supplierpublic AsyncAtomicValue<V> build()
DistributedPrimitiveBuilderbuild in class DistributedPrimitiveBuilder<AtomicValueBuilder<V>,AsyncAtomicValue<V>>