aeron-cluster/src/main/java/io/aeron/cluster/ClusterMember.java
public static boolean hasActiveQuorum(
        final ClusterMember[] clusterMembers, final long nowMs, final long timeoutMs)
    {
        int threshold = quorumThreshold(clusterMembers.length);

        for (final ClusterMember member : clusterMembers)
        {
            if (member.isLeader() || nowMs <= (member.timeOfLastAppendPositionMs() + timeoutMs))
            {
                if (--threshold <= 0)
                {
                    return true;
                }
            }
        }

        return false;
    }
public static boolean hasActiveQuorum(
        final ClusterMember[] clusterMembers, final long nowMs, final long timeoutMs)
    {
        int threshold = quorumThreshold(clusterMembers.length);

        for (final ClusterMember member : clusterMembers)
        {
            if (member.isLeader() || nowMs <= (member.timeOfLastAppendPositionMs() + timeoutMs))
            {
                if (--threshold <= 0)
                {
                    return true;
                }
            }
        }

        return false;
    }
public static boolean hasActiveQuorum ( final ClusterMember [ ] clusterMembers , final long nowMs , final long timeoutMs ) { int threshold = quorumThreshold ( clusterMembers . length ) ; for ( final ClusterMember member : clusterMembers ) { if ( member . isLeader ( ) || nowMs <= ( member . timeOfLastAppendPositionMs ( ) + timeoutMs ) ) { if ( -- threshold <= 0 ) { return true ; } } } return false ; }
Check if the cluster leader has an active quorum of cluster followers.

@param clusterMembers for the current cluster.
@param nowMs          for the current time.
@param timeoutMs      after which a follower is not considered active.
@return true if quorum of cluster members are considered active.
Check if the cluster leader has an active quorum of cluster followers .