public class QuorumConfig extends Object implements IdentifiedDataSerializable
Constructor and Description |
---|
QuorumConfig() |
QuorumConfig(QuorumConfig quorumConfig) |
QuorumConfig(String name,
boolean enabled) |
QuorumConfig(String name,
boolean enabled,
int size) |
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)
public int getFactoryId()
IdentifiedDataSerializable
getFactoryId
in interface IdentifiedDataSerializable
public int getId()
IdentifiedDataSerializable
getId
in interface IdentifiedDataSerializable
public void writeData(ObjectDataOutput out) throws IOException
DataSerializable
writeData
in interface DataSerializable
out
- outputIOException
public void readData(ObjectDataInput in) throws IOException
DataSerializable
readData
in interface DataSerializable
in
- inputIOException
Copyright © 2017 Hazelcast, Inc.. All Rights Reserved.