-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Params fixes #290
Params fixes #290
Conversation
b46e1a2
to
97eea09
Compare
97eea09
to
07a156e
Compare
* The timeout during which attempts will be made by the | ||
* [com.kaspersky.kaspresso.flakysafety.ContinuouslyProviderImpl]. | ||
*/ | ||
var timeoutMs: Long = timeoutMs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Штука в том, что раньше давным давно мы давали возможность пользователю менять данные параметры в уже созданном и распространенном объекте. Поэтому есть вероятность, что кому-то что-то отломаем.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Можно оставить эти проперти, пометив их Deprecated, при этом создав нормальный конструктор.
В Deprecated написать, что переопределять Params надо так то и так то
* The timeout during which attempts will be made by the | ||
* [com.kaspersky.kaspresso.flakysafety.FlakySafetyProviderSimpleImpl]. | ||
*/ | ||
var timeoutMs: Long = timeoutMs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Комменты выше
|
||
companion object { | ||
const val defaultTimeoutMs: Long = 10_000L | ||
const val defaultIntervalMs: Long = 500L | ||
val defaultAllowedExceptions: MutableSet<Class<out Throwable>> = mutableSetOf( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mutable коллекция значений по умолчанию в статике. Планируется, что можно будет её модифицировать для каких-то целей вне конструктора?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
плюсую, тут readable коллекция должна быть
No description provided.