Package com.google.api.gax.core
Class InstantiatingExecutorProvider
java.lang.Object
com.google.api.gax.core.InstantiatingExecutorProvider
- All Implemented Interfaces:
ExecutorProvider
InstantiatingChannelProvider is an ExecutorProvider which constructs a new
ScheduledExecutorService every time getExecutor() is called.
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the executor to use.abstract int
The number of threads used by the executor created by this ExecutorProvider.abstract ThreadFactory
Return a thread-factory to create gax processing threads so we can name them appropriatelyboolean
Indicates whether the executor should be closed by the containing client class.
-
Method Details
-
getExecutor
Description copied from interface:ExecutorProvider
Gets the executor to use.- Specified by:
getExecutor
in interfaceExecutorProvider
-
shouldAutoClose
public boolean shouldAutoClose()Description copied from interface:ExecutorProvider
Indicates whether the executor should be closed by the containing client class.- Specified by:
shouldAutoClose
in interfaceExecutorProvider
-
getExecutorThreadCount
public abstract int getExecutorThreadCount()The number of threads used by the executor created by this ExecutorProvider. -
getThreadFactory
Return a thread-factory to create gax processing threads so we can name them appropriately -
toBuilder
-
newBuilder
-
newIOBuilder
-