Class NamePreference

java.lang.Object
org.wildfly.clustering.singleton.election.NamePreference
All Implemented Interfaces:
Preference

@Deprecated(forRemoval=true) public class NamePreference extends Object implements Preference
Deprecated, for removal: This API element is subject to removal in a future version.
Replaced by SingletonElectionPolicy#prefer(java.util.function.Predicate).
An election preference.
Author:
Paul Ferraro
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • NamePreference

      public NamePreference(String name)
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • preferred

      public boolean preferred(Node node)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      preferred in interface Preference
    • toString

      public String toString()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      toString in class Object