Class CompositeServerSelector

  • All Implemented Interfaces:
    ServerSelector

    @Deprecated(since="2021-05-27")
    public final class CompositeServerSelector
    extends java.lang.Object
    implements ServerSelector
    Deprecated.
    Usage of this API is not supported in AEM as a Cloud Service.
    A server selector that composes a list of server selectors, and selects the servers by iterating through the list from start to finish, passing the result of the previous into the next, and finally returning the result of the last one.
    Since:
    3.0
    • Constructor Detail

      • CompositeServerSelector

        public CompositeServerSelector​(java.util.List<? extends ServerSelector> serverSelectors)
        Deprecated.
        Constructs a new instance.
        Parameters:
        serverSelectors - the list of composed server selectors
    • Method Detail

      • getServerSelectors

        public java.util.List<ServerSelector> getServerSelectors()
        Deprecated.
        Returns:
        the server selectors list.
      • select

        public java.util.List<ServerDescription> select​(ClusterDescription clusterDescription)
        Deprecated.
        Description copied from interface: ServerSelector
        Select a list of server descriptions from the given cluster description according to some criteria.
        Specified by:
        select in interface ServerSelector
        Parameters:
        clusterDescription - the cluster of servers to select from
        Returns:
        a non-null list of ServerDescriptions that meet the requirements of this ServerSelector. This may be empty.
      • equals

        public boolean equals​(java.lang.Object o)
        Deprecated.
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Deprecated.
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Deprecated.
        Overrides:
        toString in class java.lang.Object