Package io.grpc.xds
Class AddressFilter
- java.lang.Object
-
- io.grpc.xds.AddressFilter
-
final class AddressFilter extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
AddressFilter.PathChain
-
Field Summary
Fields Modifier and Type Field Description private static io.grpc.Attributes.Key<AddressFilter.PathChain>
PATH_CHAIN_KEY
-
Constructor Summary
Constructors Modifier Constructor Description private
AddressFilter()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (package private) static java.util.List<io.grpc.EquivalentAddressGroup>
filter(java.util.List<io.grpc.EquivalentAddressGroup> addresses, java.lang.String name)
Returns the next level hierarchical addresses derived from the given hierarchical addresses with the given filter name (any non-hierarchical addresses in the input will be ignored).(package private) static io.grpc.EquivalentAddressGroup
setPathFilter(io.grpc.EquivalentAddressGroup address, java.util.List<java.lang.String> names)
Returns a new EquivalentAddressGroup by setting a path filter to the given EquivalentAddressGroup.
-
-
-
Field Detail
-
PATH_CHAIN_KEY
@ResolutionResultAttr private static final io.grpc.Attributes.Key<AddressFilter.PathChain> PATH_CHAIN_KEY
-
-
Method Detail
-
setPathFilter
static io.grpc.EquivalentAddressGroup setPathFilter(io.grpc.EquivalentAddressGroup address, java.util.List<java.lang.String> names)
Returns a new EquivalentAddressGroup by setting a path filter to the given EquivalentAddressGroup. This method does not modify the input address.
-
filter
static java.util.List<io.grpc.EquivalentAddressGroup> filter(java.util.List<io.grpc.EquivalentAddressGroup> addresses, java.lang.String name)
Returns the next level hierarchical addresses derived from the given hierarchical addresses with the given filter name (any non-hierarchical addresses in the input will be ignored). This method does not modify the input addresses.
-
-