[FEATURE REQ] Add the ability to customize the scheduler used for timeouts/delays instead of creating a Schedulers.parallel
by default on the blob storage client
#17272
Labels
Client
This issue points to a problem in the data-plane of the library.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
feature-request
This issue requires a new behavior in the product in order be resolved.
Storage
Storage Service (Queues, Blobs, Files)
Is your feature request related to a problem? Please describe.
Currently in all the code handling timeouts/delayed subscriptions (at least on the storage project see [1], [2]) use by default the
Schedulers.parallel()
which might be convenient in some cases but it doesn't allow a fine grained control of the resources used by the client.Describe the solution you'd like
I would like to be able to inject a
ScheduledExecutorService
to be used in those cases, avoiding any unintended thread pool creation.Describe alternatives you've considered
I was able to circumvent this limitation partially (i.e. creating a custom HttpPipeline that uses a custom request retry policy),
but in other parts of the client it's impossible to inject a custom Scheduler
Additional context
It seems like in other parts of the SDK this was possible at some point, see #5466
Information Checklist
Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report
The text was updated successfully, but these errors were encountered: