org.wildfly.swarm.config.singleton.singleton_policy

## Class RandomElectionPolicy<T extends RandomElectionPolicy<T>>

- java.lang.Object
- - org.wildfly.swarm.config.singleton.singleton_policy.RandomElectionPolicy<T>

-     public class RandomElectionPolicy<T extends RandomElectionPolicy<T>>
      extends Object

  A random election policy

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `RandomElectionPolicy()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `addPropertyChangeListener(PropertyChangeListener listener)` Adds a property change listener
    `String` | `getKey()`
    `T` | `namePreference(String value)` The list of preferred node names
    `List<String>` | `namePreferences()` The list of preferred node names
    `T` | `namePreferences(List<String> value)` The list of preferred node names
    `T` | `namePreferences(String... args)` The list of preferred node names
    `void` | `removePropertyChangeListener(PropertyChangeListener listener)` Removes a property change listener
    `T` | `socketBindingPreference(String value)` The list of preferred node socket bindings
    `List<String>` | `socketBindingPreferences()` The list of preferred node socket bindings
    `T` | `socketBindingPreferences(List<String> value)` The list of preferred node socket bindings
    `T` | `socketBindingPreferences(String... args)` The list of preferred node socket bindings

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### RandomElectionPolicy

          public RandomElectionPolicy()

  - ### Method Detail

    - #### getKey

          public String getKey()

    - #### addPropertyChangeListener

          public void addPropertyChangeListener(PropertyChangeListener listener)

      Adds a property change listener

    - #### removePropertyChangeListener

          public void removePropertyChangeListener(PropertyChangeListener listener)

      Removes a property change listener

    - #### namePreferences

          public List<String> namePreferences()

      The list of preferred node names

    - #### namePreferences

          public T namePreferences(List<String> value)

      The list of preferred node names

    - #### namePreference

          public T namePreference(String value)

      The list of preferred node names

    - #### namePreferences

          public T namePreferences(String... args)

      The list of preferred node names

    - #### socketBindingPreferences

          public List<String> socketBindingPreferences()

      The list of preferred node socket bindings

    - #### socketBindingPreferences

          public T socketBindingPreferences(List<String> value)

      The list of preferred node socket bindings

    - #### socketBindingPreference

          public T socketBindingPreference(String value)

      The list of preferred node socket bindings

    - #### socketBindingPreferences

          public T socketBindingPreferences(String... args)

      The list of preferred node socket bindings

Copyright © 2018 JBoss by Red Hat. All rights reserved.