aeron-cluster/src/main/java/io/aeron/cluster/RecordingLog.java
public Entry getTermEntry(final long leadershipTermId)
    {
        final int index = (int)indexByLeadershipTermIdMap.get(leadershipTermId);
        if (NULL_VALUE == index)
        {
            throw new ClusterException("unknown leadershipTermId=" + leadershipTermId);
        }

        return entries.get(index);
    }
public Entry getTermEntry(final long leadershipTermId)
    {
        final int index = (int)indexByLeadershipTermIdMap.get(leadershipTermId);
        if (NULL_VALUE == index)
        {
            throw new ClusterException("unknown leadershipTermId=" + leadershipTermId);
        }

        return entries.get(index);
    }
Get the term {@link Entry} for a given leadership term id.

@param leadershipTermId to get {@link Entry} for.
@return the {@link Entry} if found or throw {@link IllegalArgumentException} if no entry exists for term.