Skip to content

Conversation

@zhangkun83
Copy link
Contributor

@zhangkun83 zhangkun83 commented Sep 29, 2018

Keys and Attributes instances are annotated with the following annotations:

  1. Grpc.TransportAttr: transport attributes returned by {Client,Server}Call.getAttributes().
  2. NameResolver.ResolutionResultAttr: attributes passed as the argument of NameResolver.Listener.onAddresses() and LoadBalancer.handleResolvedAddressGroups()
  3. EquivalentAddressGroup.Attr: attributes from EquivalentAddressGroups.

This is a better form of documentation than plan words in javadoc. Uses of an annotation is searchable in IDE and javadoc.

Keys are annotated with the following annotations:

1. Grpc.TransportAttr: transport attributes returned by
{Client,Server}Call.getAttributes().

2. NameResolver.ResolutionResultAttr: attributes passed as the
argument of NameResolver.Listener.onAddresses() and
LoadBalancer.handleResolvedAddressGroups()

3. EquivalentAddressGroup.Attr: attributes from
EquivalentAddressGroups.
@zhangkun83 zhangkun83 requested a review from ejona86 September 29, 2018 22:05
@zhangkun83 zhangkun83 changed the title doc: organize Attributes Keys with annotations. doc: organize Attributes with annotations. Sep 29, 2018
@zhangkun83 zhangkun83 merged commit ebbf800 into grpc:master Oct 1, 2018
@zhangkun83 zhangkun83 deleted the annotate_attribute_keys branch October 1, 2018 17:11
@lock lock bot locked as resolved and limited conversation to collaborators Dec 30, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants