aeron-cluster/src/main/java/io/aeron/cluster/ClusterMember.java
public static void becomeCandidate(
        final ClusterMember[] members, final long candidateTermId, final int candidateMemberId)
    {
        for (final ClusterMember member : members)
        {
            if (member.id == candidateMemberId)
            {
                member.vote(Boolean.TRUE)
                    .candidateTermId(candidateTermId)
                    .isBallotSent(true);
            }
            else
            {
                member.vote(null)
                    .candidateTermId(Aeron.NULL_VALUE)
                    .isBallotSent(false);
            }
        }
    }
public static void becomeCandidate(
        final ClusterMember[] members, final long candidateTermId, final int candidateMemberId)
    {
        for (final ClusterMember member : members)
        {
            if (member.id == candidateMemberId)
            {
                member.vote(Boolean.TRUE)
                    .candidateTermId(candidateTermId)
                    .isBallotSent(true);
            }
            else
            {
                member.vote(null)
                    .candidateTermId(Aeron.NULL_VALUE)
                    .isBallotSent(false);
            }
        }
    }
public static void becomeCandidate ( final ClusterMember [ ] members , final long candidateTermId , final int candidateMemberId ) { for ( final ClusterMember member : members ) { if ( member . id == candidateMemberId ) { member . vote ( Boolean . TRUE ) . candidateTermId ( candidateTermId ) . isBallotSent ( true ) ; } else { member . vote ( null ) . candidateTermId ( Aeron . NULL_VALUE ) . isBallotSent ( false ) ; } } }
Become a candidate by voting for yourself and resetting the other votes to {@link Aeron#NULL_VALUE}.

@param members           to reset the votes for.
@param candidateTermId   for the candidacy.
@param candidateMemberId for the election.
Become a candidate by voting for yourself and resetting the other votes to { @link Aeron#NULL_VALUE } .