How do I adjust the behavior of the subscribe cycle in a Java SDK?

A Java client subscriber can adjust the number of retries via the setMaxRetries(int) method and the retry interval via the setRetryInterval(int) method. Every time a subscribe attempt encounters a failure or a timeout occurs, errorCallback is invoked.  A successful subscribe attempt invokes successCallback and no more subscribe retries are attempted.