Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Miklas Boskamp <[email protected]>
  • Loading branch information
psavidis and mboskamp authored Nov 27, 2023
1 parent 8f1555e commit 95ae02c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@ public interface FetchAndLockBuilder {
/**
* Configures the fetching during the Fetch and Lock Operation to include ordering by create time of the external tasks.
* This method can be combined with asc() and desc() methods to define an ascending or descending order respectively.
* If no specific order is defined, the effective order will be desc as a sensible default since it will likely be
* more valuable to bring the most recently-created tasks first.
* If no specific order is defined, the effective order will be desc. The most recently created tasks are returned first.
* To have explicit control, you can specify the order.
*
* @return the builder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ protected ListQueryParameterObject configureParameterizedQuery(Object parameter)
return getTenantManager().configureQuery(parameter);
}

protected boolean applyOrdering(boolean usePriority, boolean useCreateTime) {
protected boolean shouldApplyOrdering(boolean usePriority, boolean useCreateTime) {
return usePriority || useCreateTime;
}

Expand Down

0 comments on commit 95ae02c

Please sign in to comment.