aeron-archive/src/main/java/io/aeron/archive/client/ArchiveProxy.java
public boolean extendRecording(
        final String channel,
        final int streamId,
        final SourceLocation sourceLocation,
        final long recordingId,
        final long correlationId,
        final long controlSessionId)
    {
        extendRecordingRequestEncoder
            .wrapAndApplyHeader(buffer, 0, messageHeaderEncoder)
            .controlSessionId(controlSessionId)
            .correlationId(correlationId)
            .recordingId(recordingId)
            .streamId(streamId)
            .sourceLocation(sourceLocation)
            .channel(channel);

        return offer(extendRecordingRequestEncoder.encodedLength());
    }
public boolean extendRecording(
        final String channel,
        final int streamId,
        final SourceLocation sourceLocation,
        final long recordingId,
        final long correlationId,
        final long controlSessionId)
    {
        extendRecordingRequestEncoder
            .wrapAndApplyHeader(buffer, 0, messageHeaderEncoder)
            .controlSessionId(controlSessionId)
            .correlationId(correlationId)
            .recordingId(recordingId)
            .streamId(streamId)
            .sourceLocation(sourceLocation)
            .channel(channel);

        return offer(extendRecordingRequestEncoder.encodedLength());
    }
Extend an existing, non-active, recorded stream for a the same channel and stream id.

The channel must be configured for the initial position from which it will be extended. This can be done
with {@link ChannelUriStringBuilder#initialPosition(long, int, int)}. The details required to initialise can
be found by calling {@link #listRecording(long, long, long)}.

@param channel          to be recorded.
@param streamId         to be recorded.
@param sourceLocation   of the publication to be recorded.
@param recordingId      to be extended.
@param correlationId    for this request.
@param controlSessionId for this request.
@return true if successfully offered otherwise false.