aeron-archive/src/main/java/io/aeron/archive/client/ArchiveProxy.java
public boolean findLastMatchingRecording(
        final long minRecordingId,
        final String channelFragment,
        final int streamId,
        final int sessionId,
        final long correlationId,
        final long controlSessionId)
    {
        findLastMatchingRecordingRequestEncoder
            .wrapAndApplyHeader(buffer, 0, messageHeaderEncoder)
            .controlSessionId(controlSessionId)
            .correlationId(correlationId)
            .minRecordingId(minRecordingId)
            .sessionId(sessionId)
            .streamId(streamId)
            .channel(channelFragment);

        return offer(findLastMatchingRecordingRequestEncoder.encodedLength());
    }
public boolean findLastMatchingRecording(
        final long minRecordingId,
        final String channelFragment,
        final int streamId,
        final int sessionId,
        final long correlationId,
        final long controlSessionId)
    {
        findLastMatchingRecordingRequestEncoder
            .wrapAndApplyHeader(buffer, 0, messageHeaderEncoder)
            .controlSessionId(controlSessionId)
            .correlationId(correlationId)
            .minRecordingId(minRecordingId)
            .sessionId(sessionId)
            .streamId(streamId)
            .channel(channelFragment);

        return offer(findLastMatchingRecordingRequestEncoder.encodedLength());
    }
Find the last recording that matches the given criteria.

@param minRecordingId   to search back to.
@param channelFragment  for a contains match on the original channel stored with the archive descriptor.
@param streamId         of the recording to match.
@param sessionId        of the recording to match.
@param correlationId    for this request.
@param controlSessionId for this request.
@return true if successfully offered otherwise false.