Interface PartitionAttributesBuilder
- All Known Implementing Classes:
DefaultPartitionAttributesBuilder
Deprecated.
A builder for
PartitionAttributes
objects. Duplicates are not necessarily detected/enforced via the
add(PartitionAttributes.Key, Object)
method.-
Method Summary
Modifier and TypeMethodDescriptionadd
(PartitionAttributes.Key<T> key, T value) Deprecated.Add a key/value pair to this builder.build()
Deprecated.Build aPartitionAttributes
corresponding to the previousadd(PartitionAttributes.Key, Object)
calls.
-
Method Details
-
add
Deprecated.Add a key/value pair to this builder.Duplicate keys are not necessarily detected, and this will instead just add.
- Type Parameters:
T
- The value type.- Parameters:
key
- The key.value
- The value.- Returns:
this
.- Throws:
DuplicateAttributeException
- A best effort will be made to detect adding duplicate keys, and if a duplicate key is detected this exception will be thrown.
-
build
PartitionAttributes build()Deprecated.Build aPartitionAttributes
corresponding to the previousadd(PartitionAttributes.Key, Object)
calls.- Returns:
- a
PartitionAttributes
corresponding to the previousadd(PartitionAttributes.Key, Object)
calls. - Throws:
DuplicateAttributeException
- If a duplicate key is detected this exception will be thrown.
-
ClientGroup
as an alternative or reach out to the maintainers describing the use-case.