taimos / dvalin

Taimos microservices framework
Apache License 2.0
14 stars 6 forks source link

adds a systemproperty to reconfigure the timeout of interconnect daem… #102

Closed siglocpp closed 2 years ago

siglocpp commented 2 years ago

In some cases, due to network bahviour or other temporary issues, it might be that some interconnect messages need more time to be answered than in normal circumstances. To be able to temporarily circumvent such issues, this commit introduces an optional SystemProperty to temporarily overwrite the timeout configuration of a specific DaemonMethod:

interconnect.forcetimeout.${interfaceName}.${methodName}=long

With ${interfaceName} beeing the simple name of the IDaemon interface implementation and ${methodName} beeing the method name. As timeUnit, the configured timeUnit of the DaemonMethod will be used.

This is an additive option. It does not change the current behaviour as long as the property is not set.