SCQRoll(@NotNull RollCycle rollCycle, long epoch, @Nullable LocalTime rollTime, @Nullable ZoneId rollTimeZone) { this.length = rollCycle.length(); this.format = rollCycle.format(); this.epoch = epoch; this.rollTime = rollTime; this.rollTimeZone = rollTimeZone; }
public RollingResourcesCache(@NotNull final RollCycle cycle, long epoch, @NotNull Function<String, File> nameToFile, @NotNull Function<File, String> fileToName) { this(cycle.length(), cycle.format(), epoch, nameToFile, fileToName); }
@Override public int length() { return delegate.length(); }
public RollingResourcesCache(@NotNull final RollCycle cycle, long epoch, @NotNull Function<String, File> nameToFile, @NotNull Function<File, String> fileToName) { this(cycle.length(), cycle.format(), epoch, nameToFile, fileToName); }
protected boolean checkPurge() { // there is no need to purge more than the cycle length (which is duration in ms) if (System.currentTimeMillis() - purgedStamp >= retention.getRollCycle().length()) { return true; } if (log.isDebugEnabled()) { log.debug("Skipping purge already done in within cycle duration: " + purgedStamp); } return false; }
SCQRoll(@NotNull RollCycle rollCycle, long epoch, @Nullable LocalTime rollTime, @Nullable ZoneId rollTimeZone) { this.length = rollCycle.length(); this.format = rollCycle.format(); this.epoch = epoch; this.rollTime = rollTime; this.rollTimeZone = rollTimeZone; }