spring-cloud-commons
spring-cloud-commons copied to clipboard
Set Timeout for Read/Write Locks in RefreshScope
Is your feature request related to a problem? Please describe. The current refreshScope process controls refresh operations using read/write locks, but there is no timeout set. If the lifecycle function of a bean takes a very long time to execute, it can lead to prolonged blocking during the refresh process or when obtaining the bean, without any related log messages.
Describe the solution you'd like Is it possible to set a timeout for the lock? If so, could I try submitting a PR for this?