link
link copied to clipboard
Client reconnect policy
Allowing user to provide a to-retry? function as reconnect policy.
the to-retry function takes several information of current retry loop state like time elapsed, retry count. And user could also call Thread.sleep inside this function to sleep.