Skip to content

support for custom ExecutorProvider in SpannerOptions.Builder #1262

@pravsingh

Description

@pravsingh

Is your feature request related to a problem? Please describe.
I would like to configure ExecutorProvider in SpannerOptions so can control the executor configs. Currently the Builder doesn't provide any setter for it. Due to this, the asyncExecutorProvider is null and hence the below code always falls back to the default provider:

SpannerImpl(SpannerRpc gapicRpc, SpannerOptions options) {
...

    this.asyncExecutorProvider =
        MoreObjects.firstNonNull(
            options.getAsyncExecutorProvider(),
            SpannerOptions.createDefaultAsyncExecutorProvider());
...
}

Describe the solution you'd like
Add setter in SpannerOptions.Builder class.

Describe alternatives you've considered
So far found no alternative.

Additional context
Discussed about this issue at discussion

Metadata

Metadata

Assignees

Labels

api: spannerIssues related to the googleapis/java-spanner API.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions