Package com.google.api.gax.core
Class FixedExecutorProvider
java.lang.Object
com.google.api.gax.core.FixedExecutorProvider
- All Implemented Interfaces:
ExecutorProvider
FixedExecutorProvider is an ExecutorProvider which always returns the same executor.
-
Method Summary
Modifier and TypeMethodDescriptionstatic FixedExecutorProvidercreate(ScheduledExecutorService executor) Creates a FixedExecutorProvider.Gets the executor to use.booleanIndicates whether the executor should be closed by the containing client class.
-
Method Details
-
getExecutor
Description copied from interface:ExecutorProviderGets the executor to use.- Specified by:
getExecutorin interfaceExecutorProvider
-
shouldAutoClose
public boolean shouldAutoClose()Description copied from interface:ExecutorProviderIndicates whether the executor should be closed by the containing client class.- Specified by:
shouldAutoClosein interfaceExecutorProvider
-
create
Creates a FixedExecutorProvider.
-