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

Static Methods

create(ScheduledExecutorService executor)

public static SpannerOptions.FixedCloseableExecutorProvider create(ScheduledExecutorService executor)

Creates a FixedCloseableExecutorProvider.

Parameter
NameDescription
executorScheduledExecutorService
Returns
TypeDescription
SpannerOptions.FixedCloseableExecutorProvider

Methods

close()

public void close()

Overridden to suppress the throws declaration of the super interface.

getExecutor()

public ScheduledExecutorService getExecutor()
Returns
TypeDescription
ScheduledExecutorService

shouldAutoClose()

public boolean shouldAutoClose()
Returns
TypeDescription
boolean