Class WritableServerSelector

  • All Implemented Interfaces:
    ServerSelector

    @Deprecated
    public final class WritableServerSelector
    extends java.lang.Object
    implements ServerSelector
    Deprecated.
    A server selector that chooses servers that are writable.
    Since:
    3.1
    • Constructor Detail

      • WritableServerSelector

        public WritableServerSelector()
        Deprecated.
    • Method Detail

      • 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.
      • toString

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