aeron-archive/src/main/java/io/aeron/archive/client/AeronArchive.java
public void stopRecording(final String channel, final int streamId)
    {
        lock.lock();
        try
        {
            ensureOpen();

            final long correlationId = aeron.nextCorrelationId();

            if (!archiveProxy.stopRecording(channel, streamId, correlationId, controlSessionId))
            {
                throw new ArchiveException("failed to send stop recording request");
            }

            pollForResponse(correlationId);
        }
        finally
        {
            lock.unlock();
        }
    }
public void stopRecording(final String channel, final int streamId)
    {
        lock.lock();
        try
        {
            ensureOpen();

            final long correlationId = aeron.nextCorrelationId();

            if (!archiveProxy.stopRecording(channel, streamId, correlationId, controlSessionId))
            {
                throw new ArchiveException("failed to send stop recording request");
            }

            pollForResponse(correlationId);
        }
        finally
        {
            lock.unlock();
        }
    }
Stop recording for a channel and stream pairing.
<p>
Channels that include sessionId parameters are considered different than channels without sessionIds. Stopping
a recording on a channel without a sessionId parameter will not stop the recording of any sessionId specific
recordings that use the same channel and streamId.

@param channel  to stop recording for.
@param streamId to stop recording for.