algoliasearch/src/offline/java/com/algolia/search/saas/OfflineClient.java
public Request moveIndexOfflineAsync(final @NonNull String srcIndexName, final @NonNull String dstIndexName, CompletionHandler completionHandler) {
        return new AsyncTaskRequest(completionHandler, localBuildExecutorService) {
            @NonNull
            @Override
            protected JSONObject run() throws AlgoliaException {
                return moveIndexOfflineSync(srcIndexName, dstIndexName);
            }
        }.start();
    }
public Request moveIndexOfflineAsync(final @NonNull String srcIndexName, final @NonNull String dstIndexName, CompletionHandler completionHandler) {
        return new AsyncTaskRequest(completionHandler, localBuildExecutorService) {
            @NonNull
            @Override
            protected JSONObject run() throws AlgoliaException {
                return moveIndexOfflineSync(srcIndexName, dstIndexName);
            }
        }.start();
    }
public Request moveIndexOfflineAsync ( final @ NonNull String srcIndexName , final @ NonNull String dstIndexName , CompletionHandler completionHandler ) { return new AsyncTaskRequest ( completionHandler , localBuildExecutorService ) { @ NonNull @ Override protected JSONObject run ( ) throws AlgoliaException { return moveIndexOfflineSync ( srcIndexName , dstIndexName ) ; } } . start ( ) ; }
Move an existing offline index.

**Warning:** This will overwrite the destination index if it exists.

**Note:** This applies both to {@link MirroredIndex} and {@link OfflineIndex} instances.

@param srcIndexName Name of index to move.
@param dstIndexName The new index name.
@param completionHandler The listener that will be notified of the request's outcome.
@return A cancellable request.
Move an existing offline index .