Class SpannerOptions.FixedCloseableExecutorProvider (6.68.0)

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
Name Description
executor ScheduledExecutorService
Returns
Type Description
SpannerOptions.FixedCloseableExecutorProvider

Methods

close()

public void close()

Overridden to suppress the throws declaration of the super interface.

getExecutor()

public ScheduledExecutorService getExecutor()
Returns
Type Description
ScheduledExecutorService

shouldAutoClose()

public boolean shouldAutoClose()
Returns
Type Description
boolean