New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
core: Add Attributes.Key for authority in EquivalentAddressGroup (#4469) #6126
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,6 +35,12 @@ | |
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/1770") | ||
public final class EquivalentAddressGroup { | ||
|
||
/** | ||
* The authority to be used when constructing Subchannels for this EquivalentAddressGroup. | ||
*/ | ||
@Attr | ||
public static final Attributes.Key<String> ATTR_AUTHORITY_OVERRIDE = | ||
Attributes.Key.create("io.grpc.grpclb.authorityOverride"); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think this is not related to There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done. I went ahead and made this change, since it was trivial. |
||
private final List<SocketAddress> addrs; | ||
private final Attributes attrs; | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add an
@ExperimentalApi
annotation here. Create a new issue to stabilize the API, and include it as the value. You can look at other experimental apis to see the format.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done