public CompletableFuture<Boolean> sealSegment(final String scope,
                                                  final String stream,
                                                  final long segmentId,
                                                  String delegationToken,
                                                  final long clientRequestId) {
        final Controller.NodeUri uri = getSegmentUri(scope, stream, segmentId);
        final String qualifiedName = getQualifiedStreamSegmentName(scope, stream, segmentId);
        final long requestId = (clientRequestId == RequestTag.NON_EXISTENT_ID) ? idGenerator.get() : clientRequestId;
        return sealSegment(qualifiedName, uri, delegationToken, requestId);
    }
public CompletableFuture < Boolean > sealSegment ( final String scope , final String stream , final long segmentId , String delegationToken , final long clientRequestId ) { final Controller . NodeUri uri = getSegmentUri ( scope , stream , segmentId ) ; final String qualifiedName = getQualifiedStreamSegmentName ( scope , stream , segmentId ) ; final long requestId = ( clientRequestId == RequestTag . NON_EXISTENT_ID ) ? idGenerator . get ( ) : clientRequestId ; return sealSegment ( qualifiedName , uri , delegationToken , requestId ) ; }
This method sends segment sealed message for the specified segment.

@param scope               stream scope
@param stream              stream name
@param segmentId           number of segment to be sealed
@param delegationToken     the token to be presented to segmentstore.
@param clientRequestId     client-generated id for end-to-end tracing
@return void