Class SpannerOptions.FixedCloseableExecutorProvider

public static class SpannerOptions.FixedCloseableExecutorProvider implements SpannerOptions.CloseableExecutorProvider

Implementation of CloseableExecutorProvider that uses a fixed single ScheduledExecutorService.

Inheritance

java.lang.Object > SpannerOptions.FixedCloseableExecutorProvider

Methods

close()

public void close()

Overridden to suppress the throws declaration of the super interface.

create(ScheduledExecutorService executor)

public static SpannerOptions.FixedCloseableExecutorProvider create(ScheduledExecutorService executor)

Creates a FixedCloseableExecutorProvider.

Parameter
NameDescription
executorScheduledExecutorService
Returns
TypeDescription
SpannerOptions.FixedCloseableExecutorProvider

getExecutor()

public ScheduledExecutorService getExecutor()
Returns
TypeDescription
ScheduledExecutorService

shouldAutoClose()

public boolean shouldAutoClose()
Returns
TypeDescription
boolean