Skip to content

Commit

Permalink
improve comments
Browse files Browse the repository at this point in the history
Signed-off-by: Kaituo Li <[email protected]>
  • Loading branch information
kaituo committed Aug 17, 2023
1 parent 7f5a077 commit 3860c77
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
import java.time.Instant;

/**
* AD realtime task cache which will hold these data
* realtime task cache which will hold these data
* 1. task state
* 2. init progress
* 3. error
* 4. last job run time
* 5. detector interval
* 5. analysis interval
*/
public class RealtimeTaskCache {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public void initRealtimeTaskCache(String configId, long configIntervalInMillis)
}

/**
* Add deleted task's id to deleted detector tasks queue.
* Add deleted task's id to deleted tasks queue.
* @param taskId task id
*/
public void addDeletedTask(String taskId) {
Expand All @@ -73,14 +73,14 @@ public void addDeletedTask(String taskId) {

/**
* Check if deleted task queue has items.
* @return true if has deleted detector task in cache
* @return true if has deleted task in cache
*/
public boolean hasDeletedTask() {
return !deletedTasks.isEmpty();
}

/**
* Poll one deleted forecaster task.
* Poll one deleted task.
* @return task id
*/
public String pollDeletedTask() {
Expand Down

0 comments on commit 3860c77

Please sign in to comment.