Skip to content

Allow to override FUTURE_COMPLETION_EXECUTOR for S3Crt client #4841

@scrocquesel

Description

@scrocquesel

Describe the feature

S3AsyncClientBuilder allows to configure the executor used to complete future. This configuration is not exposed on the S3CrtAsyncClientBuilder

Use Case

In a quarkus application, futures are executed on a thread with a different TCCL and I encounter class not found exception when CDI proxy tries to create the real object from within the default sdk-async-response executor.

Proposed Solution

Expose advancedOption(SdkAdvancedAsyncClientOption.FUTURE_COMPLETION_EXECUTOR, executor) somewhere in S3CrtAsyncClientBuilder.

Other Information

I think that SCHEDULED_EXECUTOR_SERVICE should also be configured.

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

AWS Java SDK version used

2.23.6

JDK version used

17

Operating System and version

linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestA feature should be added or improved.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions