aeron-cluster/src/main/java/io/aeron/cluster/RecordingLog.java
public long findLastTermRecordingId()
    {
        for (int i = entries.size() - 1; i >= 0; i--)
        {
            final Entry entry = entries.get(i);
            if (ENTRY_TYPE_TERM == entry.type)
            {
                return entry.recordingId;
            }
        }

        return RecordingPos.NULL_RECORDING_ID;
    }
public long findLastTermRecordingId()
    {
        for (int i = entries.size() - 1; i >= 0; i--)
        {
            final Entry entry = entries.get(i);
            if (ENTRY_TYPE_TERM == entry.type)
            {
                return entry.recordingId;
            }
        }

        return RecordingPos.NULL_RECORDING_ID;
    }
public long findLastTermRecordingId ( ) { for ( int i = entries . size ( ) - 1 ; i >= 0 ; i -- ) { final Entry entry = entries . get ( i ) ; if ( ENTRY_TYPE_TERM == entry . type ) { return entry . recordingId ; } } return RecordingPos . NULL_RECORDING_ID ; }
Find the last recording id used for a leader ship term. If not found then {@link RecordingPos#NULL_RECORDING_ID}.

@return the last leadership term recording id or {@link RecordingPos#NULL_RECORDING_ID} if not found.
Find the last recording id used for a leader ship term . If not found then { @link RecordingPos#NULL_RECORDING_ID } .