Skip to content

Commit

Permalink
chnage delay to 1 ms
Browse files Browse the repository at this point in the history
Signed-off-by: Shwetha N <[email protected]>
  • Loading branch information
ShwethaSNayak committed Oct 20, 2023
1 parent d6f876f commit f1a5f1d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,13 +149,13 @@ protected void doStart() {
TimeUnit.MILLISECONDS);
/*
Submits a periodic action that becomes enabled immediately for the first time,
and subsequently with the delay of 1 milliseconds(0 is not accepted) between the termination of one execution and the commencement of the next
and subsequently with the delay of 1 milliseconds between the termination of one execution and the commencement of the next
ie immediately after completion of first action.
*/
processFileTask = executor.scheduleWithFixedDelay(
this::processLogFiles,
0,
0,
1,
TimeUnit.MILLISECONDS);
notifyStarted();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,18 +148,18 @@ protected void processParquetFiles() {
log.trace("processParquetFiles: END");
}

/*
Submits a periodic action that becomes enabled immediately for the first time,
and subsequently with the delay of 1 milliseconds(0 is not accepted) between the termination of one execution and the commencement of the next
ie immediately after completion of first action.
*/
@Override
protected void doStart() {
watchFileTask = executor.scheduleAtFixedRate(
this::watchParquetFiles,
0,
getIntervalMs(),
TimeUnit.MILLISECONDS);
/*
Submits a periodic action that becomes enabled immediately for the first time,
and subsequently with the delay of 1 milliseconds between the termination of one execution and the commencement of the next
ie immediately after completion of first action.
*/
processFileTask = executor.scheduleWithFixedDelay(
this::processParquetFiles,
0,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,18 +141,18 @@ protected void processRawFiles() {
log.trace("processRawFiles: END");
}

/*
Submits a periodic action that becomes enabled immediately for the first time,
and subsequently with the delay of 1 milliseconds(0 is not accepted) between the termination of one execution and the commencement of the next
ie immediately after completion of first action.
*/
@Override
protected void doStart() {
watchFileTask = executor.scheduleAtFixedRate(
this::watchRawFiles,
0,
getIntervalMs(),
TimeUnit.MILLISECONDS);
/*
Submits a periodic action that becomes enabled immediately for the first time,
and subsequently with the delay of 1 milliseconds between the termination of one execution and the commencement of the next
ie immediately after completion of first action.
*/
processFileTask = executor.scheduleWithFixedDelay(
this::processRawFiles,
0,
Expand Down

0 comments on commit f1a5f1d

Please sign in to comment.