code: @Override
      public void initialize(Integer pollingPeriodMs) {
          if (timer == null) {
              timer = new Timer();
              TimerTask task = new TimerTask() {
                  /* (non-Javadoc)
                   * @see java.util.TimerTask#run()
                   */
                  @Override
                  public void run() {
                      try {
                          log.info("Launching periodic finalization...");
                          snapshotManager.finalizeSnapshots();
                          restoreManager.finalizeRestores();
                      } catch (Exception ex) {
                          ex.printStackTrace();
                      }
                  }
              };
  
              if (pollingPeriodMs == null || pollingPeriodMs < 1) {
                  pollingPeriodMs = DEFAULT_POLLING_PERIOD_MS;
              }
  
              timer.schedule(task, new Date(), pollingPeriodMs);
              log.info("Finalization scheduled to run every "
                       + pollingPeriodMs + " milliseconds.");
          }
      }
docs: /* (non-Javadoc)
  @see org.duracloud.snapshot.service.Finalizer#initialize(java.lang.Integer)