Package io.grpc.xds

Class AddressFilter

java.lang.Object
io.grpc.xds.AddressFilter

final class AddressFilter extends Object
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    private static final class 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private static final io.grpc.Attributes.Key<AddressFilter.PathChain>
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
     
  • Method Summary

    Modifier and Type
    Method
    Description
    (package private) static List<io.grpc.EquivalentAddressGroup>
    filter(List<io.grpc.EquivalentAddressGroup> addresses, 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, List<String> names)
    Returns a new EquivalentAddressGroup by setting a path filter to the given EquivalentAddressGroup.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • PATH_CHAIN_KEY

      @ResolutionResultAttr private static final io.grpc.Attributes.Key<AddressFilter.PathChain> PATH_CHAIN_KEY
  • Constructor Details

    • AddressFilter

      private AddressFilter()
  • Method Details

    • setPathFilter

      static io.grpc.EquivalentAddressGroup setPathFilter(io.grpc.EquivalentAddressGroup address, List<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 List<io.grpc.EquivalentAddressGroup> filter(List<io.grpc.EquivalentAddressGroup> addresses, 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.