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

getExecutor()

public ScheduledExecutorService getExecutor()
Returns

shouldAutoClose()

public boolean shouldAutoClose()
Returns
TypeDescription
boolean