public class QuorumConfig extends Object
Constructor and Description |
---|
QuorumConfig() |
QuorumConfig(QuorumConfig quorumConfig) |
QuorumConfig(String name,
boolean enabled) |
QuorumConfig(String name,
boolean enabled,
int size) |
Modifier and Type | Method and Description |
---|---|
QuorumConfig |
addListenerConfig(QuorumListenerConfig listenerConfig) |
List<QuorumListenerConfig> |
getListenerConfigs() |
String |
getName() |
String |
getQuorumFunctionClassName() |
QuorumFunction |
getQuorumFunctionImplementation() |
int |
getSize() |
QuorumType |
getType() |
boolean |
isEnabled() |
QuorumConfig |
setEnabled(boolean enabled) |
QuorumConfig |
setListenerConfigs(List<QuorumListenerConfig> listenerConfigs) |
QuorumConfig |
setName(String name) |
QuorumConfig |
setQuorumFunctionClassName(String quorumFunctionClassName) |
QuorumConfig |
setQuorumFunctionImplementation(QuorumFunction quorumFunctionImplementation) |
QuorumConfig |
setSize(int size) |
QuorumConfig |
setType(QuorumType type) |
String |
toString() |
public QuorumConfig()
public QuorumConfig(String name, boolean enabled)
public QuorumConfig(String name, boolean enabled, int size)
public QuorumConfig(QuorumConfig quorumConfig)
public String getName()
public QuorumConfig setName(String name)
public boolean isEnabled()
public QuorumConfig setEnabled(boolean enabled)
public int getSize()
public QuorumConfig setSize(int size)
public QuorumType getType()
public QuorumConfig setType(QuorumType type)
public List<QuorumListenerConfig> getListenerConfigs()
public QuorumConfig setListenerConfigs(List<QuorumListenerConfig> listenerConfigs)
public QuorumConfig addListenerConfig(QuorumListenerConfig listenerConfig)
public String getQuorumFunctionClassName()
public QuorumConfig setQuorumFunctionClassName(String quorumFunctionClassName)
public QuorumFunction getQuorumFunctionImplementation()
public QuorumConfig setQuorumFunctionImplementation(QuorumFunction quorumFunctionImplementation)
Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.