Class LeaseMajority


  • public final class LeaseMajority
    extends DowningStrategy
    INTERNAL API

    Keep the part that can acquire the lease, and down the other part.

    Best effort is to keep the side that has most nodes, i.e. the majority side. This is achieved by adding a delay before trying to acquire the lease on the minority side.

    If the role is defined the majority/minority is based only on members with that role. It is only counting members within the own data center.

    • Constructor Detail

      • LeaseMajority

        public LeaseMajority​(java.lang.String selfDc,
                             scala.Option<java.lang.String> role,
                             Lease _lease,
                             scala.concurrent.duration.FiniteDuration acquireLeaseDelayForMinority)