ClientGroup as an alternative or reach out to the maintainers describing
the use-case.@Deprecated
public final class DefaultPartitionAttributesBuilder
extends Object
implements PartitionAttributesBuilder
PartitionAttributesBuilder.
This class provides a relatively low memory overhead (when compared to TreeMap) for a
PartitionAttributes. The goals are to provide fast Object.equals(Object) and
Object.hashCode() which do not require intermediate object allocation and pointer traversal
(e.g. Iterator).
| Constructor and Description |
|---|
DefaultPartitionAttributesBuilder(int initialSize)
Deprecated.
Create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
<T> PartitionAttributesBuilder |
add(PartitionAttributes.Key<T> key,
T value)
Deprecated.
|
PartitionAttributes |
build()
Deprecated.
|
public DefaultPartitionAttributesBuilder(int initialSize)
initialSize - The anticipated number of key/value pairs that will be added via
add(Key<T> key, T value).