You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 25, 2024. It is now read-only.
BasicDBObject query = new BasicDBObject();
query.put(TRIGGER_NEXT_FIRE_TIME, new BasicDBObject("$lte", new Date(noLaterThan)));
if (log.isDebugEnabled()) {
log.debug("Finding up to " + maxCount + " triggers which have time less than " + new Date(noLaterThan));
}
Do this:-
Date noLaterThanDate = new Date();
BasicDBObject query = new BasicDBObject();
query.put(TRIGGER_NEXT_FIRE_TIME, new BasicDBObject("$lte", noLaterThanDate));
log.debug("Finding up to {} triggers which have time less than {}", maxCount, noLaterThanDate);
i.e. you don't really need those isDebugEnabled calls if you are using the SLF4j eith {} instead of string concatenation.
... And only create the noLaterThanDate once rather than twice as it was prior.
The text was updated successfully, but these errors were encountered:
Don't do this:-
Do this:-
i.e. you don't really need those isDebugEnabled calls if you are using the SLF4j eith {} instead of string concatenation.
... And only create the noLaterThanDate once rather than twice as it was prior.
The text was updated successfully, but these errors were encountered: