algoliasearch/src/offline/java/com/algolia/search/saas/MirroredIndex.java
@Override
    public Request getObjectAsync(final @NonNull String objectID, final @Nullable Collection<String> attributesToRetrieve, @Nullable RequestOptions requestOptions, @NonNull CompletionHandler completionHandler) {
        if (!mirrored) {
            return super.getObjectAsync(objectID, attributesToRetrieve, requestOptions, completionHandler);
        } else {
            return new OnlineOfflineGetObjectRequest(objectID, new ArrayList(attributesToRetrieve), requestOptions, completionHandler).start();
        }
    }
@Override
    public Request getObjectAsync(final @NonNull String objectID, final @Nullable Collection<String> attributesToRetrieve, @Nullable RequestOptions requestOptions, @NonNull CompletionHandler completionHandler) {
        if (!mirrored) {
            return super.getObjectAsync(objectID, attributesToRetrieve, requestOptions, completionHandler);
        } else {
            return new OnlineOfflineGetObjectRequest(objectID, new ArrayList(attributesToRetrieve), requestOptions, completionHandler).start();
        }
    }
@ Override public Request getObjectAsync ( final @ NonNull String objectID , final @ Nullable Collection < String > attributesToRetrieve , @ Nullable RequestOptions requestOptions , @ NonNull CompletionHandler completionHandler ) { if ( ! mirrored ) { return super . getObjectAsync ( objectID , attributesToRetrieve , requestOptions , completionHandler ) ; } else { return new OnlineOfflineGetObjectRequest ( objectID , new ArrayList ( attributesToRetrieve ) , requestOptions , completionHandler ) . start ( ) ; } }
Get an individual object from the online API, falling back to the local mirror in case of error (when enabled).

@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 requestOptions Request-specific options.
@param completionHandler The listener that will be notified of the request's outcome.
@return A cancellable request.
Get an individual object from the online API falling back to the local mirror in case of error ( when enabled ) .