aeron-archive/src/main/java/io/aeron/archive/client/AeronArchive.java
public int listRecording(final long recordingId, final RecordingDescriptorConsumer consumer)
    {
        lock.lock();
        try
        {
            ensureOpen();

            final long correlationId = aeron.nextCorrelationId();

            if (!archiveProxy.listRecording(recordingId, correlationId, controlSessionId))
            {
                throw new ArchiveException("failed to send list recording request");
            }

            return pollForDescriptors(correlationId, 1, consumer);
        }
        finally
        {
            lock.unlock();
        }
    }
public int listRecording(final long recordingId, final RecordingDescriptorConsumer consumer)
    {
        lock.lock();
        try
        {
            ensureOpen();

            final long correlationId = aeron.nextCorrelationId();

            if (!archiveProxy.listRecording(recordingId, correlationId, controlSessionId))
            {
                throw new ArchiveException("failed to send list recording request");
            }

            return pollForDescriptors(correlationId, 1, consumer);
        }
        finally
        {
            lock.unlock();
        }
    }
public int listRecording ( final long recordingId , final RecordingDescriptorConsumer consumer ) { lock . lock ( ) ; try { ensureOpen ( ) ; final long correlationId = aeron . nextCorrelationId ( ) ; if ( ! archiveProxy . listRecording ( recordingId , correlationId , controlSessionId ) ) { throw new ArchiveException ( "failed to send list recording request" ) ; } return pollForDescriptors ( correlationId , 1 , consumer ) ; } finally { lock . unlock ( ) ; } }
List a recording descriptor for a single recording id.
<p>
If the recording id is greater than the largest known id then nothing is returned.

@param recordingId at which to begin the listing.
@param consumer    to which the descriptors are dispatched.
@return the number of descriptors found and consumed.
List a recording descriptor for a single recording id . <p > If the recording id is greater than the largest known id then nothing is returned .