Package com.google.api.gax.core
Interface ExecutorProvider
- All Known Implementing Classes:
FixedExecutorProvider
,InstantiatingExecutorProvider
public interface ExecutorProvider
Provides an interface to either build a ScheduledExecutorService or provide a fixed
ScheduledExecutorService that will be used to make calls to a service.
-
Method Summary
Modifier and TypeMethodDescriptionGets the executor to use.boolean
Indicates whether the executor should be closed by the containing client class.
-
Method Details
-
shouldAutoClose
boolean shouldAutoClose()Indicates whether the executor should be closed by the containing client class. -
getExecutor
ScheduledExecutorService getExecutor()Gets the executor to use.
-