public boolean restartProcess(String groupId, String streamId, boolean sync) {
        Preconditions.expectNotBlank(groupId, ErrorCodeEnum.GROUP_ID_IS_EMPTY);
        Preconditions.expectNotBlank(streamId, ErrorCodeEnum.STREAM_ID_IS_EMPTY);
        Response<Boolean> response =
                ClientUtils.executeHttpCall(inlongStreamApi.restartProcess(groupId, streamId, sync));
        ClientUtils.assertRespSuccess(response);
        return response.getData();
    }
Restart stream in synchronous/asynchronous way.

@param groupId inlong group id
@param streamId inlong stream id
@param sync Restart stream in synchronous/asynchronous way.
@return whether succeed
inlong-manager/manager-client/src/main/java/org/apache/inlong/manager/client/api/inner/client/InlongStreamClient.java