Package io.grpc
Class Attributes.Builder
java.lang.Object
io.grpc.Attributes.Builder
- Enclosing class:
Attributes
The helper class to build an Attributes instance.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Attributesprivate IdentityHashMap<Attributes.Key<?>, Object> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build the attributes.private IdentityHashMap<Attributes.Key<?>, Object> data(int size) discard(Attributes.Key<T> key) Removes the key and associated value from the attributes.set(Attributes.Key<T> key, T value) setAll(Attributes other)
-
Field Details
-
base
-
newdata
-
-
Constructor Details
-
Builder
-
-
Method Details
-
data
-
set
-
discard
Removes the key and associated value from the attributes.- Parameters:
key- The key to remove- Returns:
- this
- Since:
- 1.22.0
-
setAll
-
build
Build the attributes.
-