public class UnsatisfiableQuorumFailsafe extends java.lang.Object implements RaftFailsafe
| Modifier and Type | Field and Description |
|---|---|
long |
timeout
The timeout, in milliseconds, after which the failsafe should trigger.
|
| Constructor and Description |
|---|
UnsatisfiableQuorumFailsafe(java.time.Duration timeout)
Create a new failsafe from the default Kubernetes state in
UDPTransport.readKubernetesState(). |
UnsatisfiableQuorumFailsafe(IOSupplier<java.lang.String[]> getClusterState,
java.time.Duration timeout)
Create a new failsafe from the given cluster state provider.
|
| Modifier and Type | Method and Description |
|---|---|
void |
heartbeat(RaftAlgorithm algorithm,
long now)
This gets called every heartbeat from an EloquentRaftAlgorithm where this failsafe is registered.
|
public final long timeout
EloquentRaftAlgorithm is
EloquentRaftAlgorithm.MACHINE_DOWN_TIMEOUT + 15spublic UnsatisfiableQuorumFailsafe(java.time.Duration timeout)
UDPTransport.readKubernetesState().public UnsatisfiableQuorumFailsafe(IOSupplier<java.lang.String[]> getClusterState, java.time.Duration timeout)
public void heartbeat(RaftAlgorithm algorithm, long now)
heartbeat in interface RaftFailsafealgorithm - the calling algorithmnow - the current time