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.CloseableExecutorProvider
close
in interface SpannerOptions.CloseableExecutorProvider
close
in interface AutoCloseable
public ScheduledExecutorService getExecutor()
getExecutor
in interface ExecutorProvider
public boolean shouldAutoClose()
shouldAutoClose
in interface ExecutorProvider
public static SpannerOptions.FixedCloseableExecutorProvider create(ScheduledExecutorService executor)
Copyright © 2022 Google LLC. All rights reserved.