Package io.atomix.cluster.protocol
Class HeartbeatMembershipProtocolConfig
java.lang.Object
io.atomix.cluster.protocol.GroupMembershipProtocolConfig
io.atomix.cluster.protocol.HeartbeatMembershipProtocolConfig
- All Implemented Interfaces:
io.atomix.utils.config.Config,io.atomix.utils.config.TypedConfig<GroupMembershipProtocol.Type>
public class HeartbeatMembershipProtocolConfig extends GroupMembershipProtocolConfig
Gossip group membership protocol configuration.
-
Constructor Summary
Constructors Constructor Description HeartbeatMembershipProtocolConfig() -
Method Summary
Modifier and Type Method Description java.time.DurationgetFailureTimeout()Returns the base failure timeout.java.time.DurationgetHeartbeatInterval()Returns the heartbeat interval.intgetPhiFailureThreshold()Returns the failure detector threshold.GroupMembershipProtocol.TypegetType()HeartbeatMembershipProtocolConfigsetFailureTimeout(java.time.Duration failureTimeout)Sets the base failure timeout.HeartbeatMembershipProtocolConfigsetHeartbeatInterval(java.time.Duration heartbeatInterval)Sets the heartbeat interval.HeartbeatMembershipProtocolConfigsetPhiFailureThreshold(int phiFailureThreshold)Sets the failure detector threshold.
-
Constructor Details
-
HeartbeatMembershipProtocolConfig
public HeartbeatMembershipProtocolConfig()
-
-
Method Details
-
getType
-
getHeartbeatInterval
public java.time.Duration getHeartbeatInterval()Returns the heartbeat interval.- Returns:
- the heartbeat interval
-
setHeartbeatInterval
public HeartbeatMembershipProtocolConfig setHeartbeatInterval(java.time.Duration heartbeatInterval)Sets the heartbeat interval.- Parameters:
heartbeatInterval- the heartbeat interval- Returns:
- the group membership configuration
-
getPhiFailureThreshold
public int getPhiFailureThreshold()Returns the failure detector threshold.- Returns:
- the failure detector threshold
-
setPhiFailureThreshold
Sets the failure detector threshold.- Parameters:
phiFailureThreshold- the failure detector threshold- Returns:
- the group membership configuration
-
getFailureTimeout
public java.time.Duration getFailureTimeout()Returns the base failure timeout.- Returns:
- the base failure timeout
-
setFailureTimeout
Sets the base failure timeout.- Parameters:
failureTimeout- the base failure timeout- Returns:
- the group membership configuration
-