Package io.grpc.xds

Class AddressFilter


  • final class AddressFilter
    extends java.lang.Object
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      private static class  AddressFilter.PathChain  
    • 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.
      • Methods inherited from class java.lang.Object

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

      • PATH_CHAIN_KEY

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

      • AddressFilter

        private AddressFilter()
    • 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.