Skip to content

ServiceBus - Track2 - Design/Add Callback Handler to autolockrenew #11761

@KieranBrantnerMagee

Description

@KieranBrantnerMagee

Is your feature request related to a problem? Please describe.
Users consuming autolockrenew would like a more responsive mechanism to react to issues in lock renewal. (see #11611) This would cleanly mirror the pattern used in the processors of other language sdks (onError handlers)

Describe the solution you'd like
An onError callback parameter to autolockrenewal registration or creation to allow taking immediate action if renewal fails.

Describe alternatives you've considered
There are two approaches I see to this.

  1. put on the initial constructor, for all registered objects.
  2. Put on the "register" stanza. This seems like the right choice, as action for renewal failure on a session vs. a message are very different things and one may use lock renewal for both. (Technically we could accomplish this in the generic constructor by passing the entity in question as well; but it would then require instanceof, and that's a code smell to me)

Additional context
See GH thread linked above for further context.

Metadata

Metadata

Labels

ClientThis issue points to a problem in the data-plane of the library.Service Busfeature-requestThis issue requires a new behavior in the product in order be resolved.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions