- All Known Implementing Classes:
ErrorFlightMetadata,FlightCallHeaders,MetadataAdapter
public interface CallHeaders
A set of metadata key value pairs for a call (request or response).
-
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsKey(String key) Check whether the given metadata key is present.Get the value of a metadata key.Get all values present for the given metadata key.Iterable<byte[]>getAllByte(String key) Get all values present for the given metadata key.byte[]Get the value of a metadata key.voidInsert a metadata pair with the given value.voidInsert a metadata pair with the given value.keys()Get a set of all the metadata keys.
-
Method Details
-
get
Get the value of a metadata key. If multiple values are present, then get the last one. -
getByte
Get the value of a metadata key. If multiple values are present, then get the last one. -
getAll
Get all values present for the given metadata key. -
getAllByte
Get all values present for the given metadata key. -
insert
Insert a metadata pair with the given value.Duplicate metadata are permitted.
-
insert
Insert a metadata pair with the given value.Duplicate metadata are permitted.
-
keys
Get a set of all the metadata keys. -
containsKey
Check whether the given metadata key is present.
-