Class SpannerOptions.FixedCloseableExecutorProvider (6.25.1)

Stay organized with collections Save and categorize content based on your preferences.
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