public final class

PlayServicesStorage.GlobalSearchContext

extends java.lang.Object

 java.lang.Object

↳androidx.appsearch.playservicesstorage.PlayServicesStorage.GlobalSearchContext

Overview

Contains information relevant to creating a global search session.

Summary

Methods
public java.util.concurrent.ExecutorgetWorkerExecutor()

Returns the worker executor associated with GlobalSearchSession.

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Methods

public java.util.concurrent.Executor getWorkerExecutor()

Returns the worker executor associated with GlobalSearchSession.

If an executor is not provided to PlayServicesStorage.GlobalSearchContext.Builder, the AppSearch default executor will be returned. You should never cast the executor to java.util.concurrent.ExecutorService and call shutdownNow. It will cancel the futures it's returned. And since execute won't return anything, we will hang forever waiting for the execution.