code: public synchronized void setPollingInterval(final long pollingInterval) {
          if (pollingInterval <= 0) {
              throw new IllegalArgumentException("'pollingInterval' must be greater than 0");
          }
  
          currentPollingInterval = pollingInterval;
  
          if (listeners.size() > 0) {
              stop();
              start();
          }
      }
docs: Sets the polling interval
  
  @param pollingInterval the interval in milliseconds to poll for the USB
  storage devices on the system.