public class SimpleElectionPolicy<T extends SimpleElectionPolicy<T>> extends Object
Constructor and Description |
---|
SimpleElectionPolicy() |
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
|
Integer |
position()
The position in the membership list from which the singleton master will
be chosen
|
T |
position(Integer value)
The position in the membership list from which the singleton master will
be chosen
|
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
|
public String getKey()
public void addPropertyChangeListener(PropertyChangeListener listener)
public void removePropertyChangeListener(PropertyChangeListener listener)
public Integer position()
public T position(Integer value)
public List<String> socketBindingPreferences()
public T socketBindingPreferences(List<String> value)
public T socketBindingPreference(String value)
Copyright © 2019 JBoss by Red Hat. All rights reserved.