public DirectoryPollerBuilder setPollingInterval ( long interval , TimeUnit timeUnit ) { if ( interval < 0 ) { throw new IllegalArgumentException ( "Argument 'interval' is negative: " + interval ) ; } pollingIntervalInMillis = timeUnit . toMillis ( interval ) ; return this ; }
Set the interval between each poll cycle . Optional parameter . Default value is 1000 milliseconds .