Validate.isTrue(minDuration > 0, "minDuration must greater then 0");
Validate.isTrue(cacheSize > 100, "cacheSize should greate then 100");
}
public AccessLog beginAccess(HttpServletRequest request, Date date) {
AccessLog accessLog = buildLog(request);
accessLog.setBeginAt(date);
synchronized (accessLogs) {
accessLogs.add(accessLog);
if (accessLogs.size() >= cacheSize) {
shrink(accessLogs);
if (accessLogs.size() >= cacheSize) {