Skip to content

Commit

Permalink
Minor comment incorporated
Browse files Browse the repository at this point in the history
Signed-off-by: Dhwanil Patel <dhwanip@amazon.com>
  • Loading branch information
dhwanilpatel committed Sep 2, 2022
1 parent 53b6614 commit 018912b
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ public void onSubmitFailure(List<? extends TaskBatcher.BatchedTask> tasks) {
* @param tasks list of tasks which will be executed.
*/
@Override
public void onBeginProcess(List<? extends TaskBatcher.BatchedTask> tasks) {
public void onBeginProcessing(List<? extends TaskBatcher.BatchedTask> tasks) {
reduceTaskCount(tasks);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ void runIfNotProcessed(BatchedTask updateTask) {
return tasks.isEmpty() ? entry.getKey() : entry.getKey() + "[" + tasks + "]";
}).reduce((s1, s2) -> s1 + ", " + s2).orElse("");

taskBatcherListener.onBeginProcess(toExecute);
taskBatcherListener.onBeginProcessing(toExecute);
run(updateTask.batchingKey, toExecute, tasksSummary);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public interface TaskBatcherListener {
* Callback called before processing any tasks.
* @param tasks list of tasks which will be executed.
*/
void onBeginProcess(List<? extends TaskBatcher.BatchedTask> tasks);
void onBeginProcessing(List<? extends TaskBatcher.BatchedTask> tasks);

/**
* Callback called when tasks are timed out.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ public void testThrottling() {
assertEquals(3L, throttlingStats.getThrottlingCount(taskKey));

// remove one task
throttler.onBeginProcess(getMockUpdateTaskList(taskKey, 1));
throttler.onBeginProcessing(getMockUpdateTaskList(taskKey, 1));

// add 3 tasks should pass now.
// taskCount in Queue: 2 Threshold: 5
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ public void onSubmitFailure(List<? extends TaskBatcher.BatchedTask> tasks) {
}

@Override
public void onBeginProcess(List<? extends TaskBatcher.BatchedTask> tasks) {
public void onBeginProcessing(List<? extends TaskBatcher.BatchedTask> tasks) {
// No Op
}

Expand Down

0 comments on commit 018912b

Please sign in to comment.