Package com.google.cloud.spanner
Class SpannerOptions.FixedCloseableExecutorProvider
java.lang.Object
com.google.cloud.spanner.SpannerOptions.FixedCloseableExecutorProvider
- All Implemented Interfaces:
com.google.api.gax.core.ExecutorProvider
,SpannerOptions.CloseableExecutorProvider
,AutoCloseable
- Enclosing class:
- SpannerOptions
public static class SpannerOptions.FixedCloseableExecutorProvider
extends Object
implements SpannerOptions.CloseableExecutorProvider
Implementation of
SpannerOptions.CloseableExecutorProvider
that uses a fixed single ScheduledExecutorService
.-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Overridden to suppress the throws declaration of the super interface.create
(ScheduledExecutorService executor) Creates a FixedCloseableExecutorProvider.boolean
-
Method Details
-
close
public void close()Description copied from interface:SpannerOptions.CloseableExecutorProvider
Overridden to suppress the throws declaration of the super interface.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceSpannerOptions.CloseableExecutorProvider
-
getExecutor
- Specified by:
getExecutor
in interfacecom.google.api.gax.core.ExecutorProvider
-
shouldAutoClose
public boolean shouldAutoClose()- Specified by:
shouldAutoClose
in interfacecom.google.api.gax.core.ExecutorProvider
-
create
public static SpannerOptions.FixedCloseableExecutorProvider create(ScheduledExecutorService executor) Creates a FixedCloseableExecutorProvider.
-