Class ClientQuotaFilterComponent


  • public class ClientQuotaFilterComponent
    extends Object
    Describes a component for applying a client quota filter.
    • Method Detail

      • ofEntity

        public static ClientQuotaFilterComponent ofEntity​(String entityType,
                                                          String entityName)
        Constructs and returns a filter component that exactly matches the provided entity name for the entity type.
        Parameters:
        entityType - the entity type the filter component applies to
        entityName - the entity name that's matched exactly
      • ofDefaultEntity

        public static ClientQuotaFilterComponent ofDefaultEntity​(String entityType)
        Constructs and returns a filter component that matches the built-in default entity name for the entity type.
        Parameters:
        entityType - the entity type the filter component applies to
      • ofEntityType

        public static ClientQuotaFilterComponent ofEntityType​(String entityType)
        Constructs and returns a filter component that matches any specified name for the entity type.
        Parameters:
        entityType - the entity type the filter component applies to
      • entityType

        public String entityType()
        Returns:
        the component's entity type
      • match

        public Optional<String> match()
        Returns:
        the optional match string, where: if present, the name that's matched exactly if empty, matches the default name if null, matches any specified name
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object