algoliasearch/src/offline/java/com/algolia/search/saas/MirroredIndex.java
public Request getObjectOfflineAsync(@NonNull final String objectID, final @Nullable List<String> attributesToRetrieve, @NonNull CompletionHandler completionHandler) {
        if (!mirrored) {
            throw new IllegalStateException("Mirroring not activated on this index");
        }
        return getClient().new AsyncTaskRequest(completionHandler, getClient().localSearchExecutorService) {
            @NonNull
            @Override
            protected JSONObject run() throws AlgoliaException {
                return _getObjectOffline(objectID, attributesToRetrieve);
            }
        }.start();
    }
public Request getObjectOfflineAsync(@NonNull final String objectID, final @Nullable List<String> attributesToRetrieve, @NonNull CompletionHandler completionHandler) {
        if (!mirrored) {
            throw new IllegalStateException("Mirroring not activated on this index");
        }
        return getClient().new AsyncTaskRequest(completionHandler, getClient().localSearchExecutorService) {
            @NonNull
            @Override
            protected JSONObject run() throws AlgoliaException {
                return _getObjectOffline(objectID, attributesToRetrieve);
            }
        }.start();
    }
public Request getObjectOfflineAsync ( @ NonNull final String objectID , final @ Nullable List < String > attributesToRetrieve , @ NonNull CompletionHandler completionHandler ) { if ( ! mirrored ) { throw new IllegalStateException ( "Mirroring not activated on this index" ) ; } return getClient ( ) . new AsyncTaskRequest ( completionHandler , getClient ( ) . localSearchExecutorService ) { @ NonNull @ Override protected JSONObject run ( ) throws AlgoliaException { return _getObjectOffline ( objectID , attributesToRetrieve ) ; } } . start ( ) ; }
Get an individual object, explicitly targeting the offline mirror, not the online API.

@param objectID Identifier of the object to retrieve.
@param attributesToRetrieve Attributes to retrieve. If `null` or if at least one item is `*`, all retrievable
attributes will be retrieved.
@param completionHandler The listener that will be notified of the request's outcome.
@return A cancellable request.
@throws IllegalStateException if mirroring is not activated on this index.
Get an individual object explicitly targeting the offline mirror not the online API .