code: void updateFileMonitor(Long monitorInterval, String fileMonitorType) {
          if (this.monitorInterval.equals(monitorInterval) && this.monitorType.equals(fileMonitorType)) {
              return;
          }
  
          if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
              Tr.debug(tc, "Updating FileMonitor with a new monitoring interval: " + monitorInterval + " and type: " + fileMonitorType);
          }
  
          this.monitorInterval = monitorInterval;
          this.monitorType = fileMonitorType;
  
          Hashtable<String, Object> properties = getFileMonitorProperties();
          serviceRegistration.setProperties(properties);
      }
docs: Update FileMonitor service with a new monitoring interval and monitor type. Both parameters must not be <code>null</code>.