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 ofSpannerOptions.CloseableExecutorProvider
that uses a fixed singleScheduledExecutorService
.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Overridden to suppress the throws declaration of the super interface.static SpannerOptions.FixedCloseableExecutorProvider
create(ScheduledExecutorService executor)
Creates a FixedCloseableExecutorProvider.ScheduledExecutorService
getExecutor()
boolean
shouldAutoClose()
-
-
-
Method Detail
-
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
public ScheduledExecutorService 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.
-
-