code: protected void retryIfReady() {
          Log.v(Log.TAG_SYNC, "[retryIfReady()] stateMachine => " + stateMachine.getState().toString());
          // check if state is still IDLE (ONLINE), then retry now.
          if (stateMachine.getState().equals(ReplicationState.IDLE)) {
              Log.v(Log.TAG_SYNC, "%s RETRYING, to transfer missed revisions...", this);
              cancelRetryFuture();
              retry();
          }
      }
docs: in CBL_Replicator.m
  - (void) retryIfReady