Skip to content

Commit

Permalink
Add accessor for queue max behind mins
Browse files Browse the repository at this point in the history
  • Loading branch information
alexjhawk committed Oct 28, 2022
1 parent 2f7577c commit 4072a9f
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,15 @@ public static synchronized void setQueueMaxBehindMins(long timeMins) {
maxQueueGetsBehindMs = SCTimeUnit.MINUTES.toMillis(timeMins);
}

/**
* Get the maximum amount the Historical FIFO queue can get behind in minutes.
*
* @return maximum amount the Historical FIFO queue can get behind in minutes
*/
public static synchronized long getQueueMaxBehindMins() {
return SCTimeUnit.MILLISECONDS.toMinutes(maxQueueGetsBehindMs);
}

/**
* Convert a <code>long</code> time value to format required for EDB calls.
*
Expand Down

0 comments on commit 4072a9f

Please sign in to comment.