public static class SpannerOptions.FixedCloseableExecutorProvider extends Object implements SpannerOptions.CloseableExecutorProvider
SpannerOptions.CloseableExecutorProvider that uses a fixed single ScheduledExecutorService.| Modifier and Type | Method and 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() |
public void close()
SpannerOptions.CloseableExecutorProviderclose in interface SpannerOptions.CloseableExecutorProviderclose in interface AutoCloseablepublic ScheduledExecutorService getExecutor()
getExecutor in interface com.google.api.gax.core.ExecutorProviderpublic boolean shouldAutoClose()
shouldAutoClose in interface com.google.api.gax.core.ExecutorProviderpublic static SpannerOptions.FixedCloseableExecutorProvider create(ScheduledExecutorService executor)
Copyright © 2022 Google LLC. All rights reserved.