public class SingletonPolicy<T extends SingletonPolicy<T>> extends Object
Modifier and Type | Class and Description |
---|---|
static class |
SingletonPolicy.SingletonPolicyResources
Child mutators for SingletonPolicy
|
Constructor and Description |
---|
SingletonPolicy(String key) |
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Adds a property change listener
|
String |
cache()
The cache backing the singleton policy's singleton service.
|
T |
cache(String value)
The cache backing the singleton policy's singleton service.
|
String |
cacheContainer()
The cache container backing the singleton policy's singleton service
|
T |
cacheContainer(String value)
The cache container backing the singleton policy's singleton service
|
String |
getKey() |
Integer |
quorum()
The minimum number of nodes required before this singleton service will
start
|
T |
quorum(Integer value)
The minimum number of nodes required before this singleton service will
start
|
T |
randomElectionPolicy()
A random election policy
|
T |
randomElectionPolicy(RandomElectionPolicy value)
A random election policy
|
T |
randomElectionPolicy(RandomElectionPolicyConsumer consumer)
A random election policy
|
T |
randomElectionPolicy(RandomElectionPolicySupplier supplier)
A random election policy
|
void |
removePropertyChangeListener(PropertyChangeListener listener)
Removes a property change listener
|
T |
simpleElectionPolicy()
A simple election policy
|
T |
simpleElectionPolicy(SimpleElectionPolicy value)
A simple election policy
|
T |
simpleElectionPolicy(SimpleElectionPolicyConsumer consumer)
A simple election policy
|
T |
simpleElectionPolicy(SimpleElectionPolicySupplier supplier)
A simple election policy
|
SingletonPolicy.SingletonPolicyResources |
subresources() |
public SingletonPolicy(String key)
public String getKey()
public void addPropertyChangeListener(PropertyChangeListener listener)
public void removePropertyChangeListener(PropertyChangeListener listener)
public SingletonPolicy.SingletonPolicyResources subresources()
public T randomElectionPolicy(RandomElectionPolicy value)
public T randomElectionPolicy(RandomElectionPolicyConsumer consumer)
public T randomElectionPolicy()
public T randomElectionPolicy(RandomElectionPolicySupplier supplier)
public T simpleElectionPolicy(SimpleElectionPolicy value)
public T simpleElectionPolicy(SimpleElectionPolicyConsumer consumer)
public T simpleElectionPolicy()
public T simpleElectionPolicy(SimpleElectionPolicySupplier supplier)
public String cache()
public T cache(String value)
public String cacheContainer()
public T cacheContainer(String value)
public Integer quorum()
Copyright © 2019 JBoss by Red Hat. All rights reserved.