"how to use default value in the builder pattern if that value is not passed and also make thread safe?" Code Answer

1

just initialize the timeout to 500 in the builder. the timeout method will overwrite this value if it's called.

protected long timeout = 500l;
By RandomAndy on March 11 2022

Answers related to “how to use default value in the builder pattern if that value is not passed and also make thread safe?”

Only authorized users can answer the Search term. Please sign in first, or register a free account.