Class DayAndHourExpiration

All Implemented Interfaces:
ExpirationManager<DayAndHourExpiration.DateAndHour>

@InternalUseOnly public class DayAndHourExpiration extends BaseExpiration<DayAndHourExpiration.DateAndHour>
Expires on the hour, returning a datetime format of "yyyy-MM-dd.HHmmss.SSSZ" after rolling on the hour. Acts as a high-watermark cache of BinaryLogFilename.localDateColumnPartition(ZonedDateTime) and BinaryLogFilename.trailingFormat(ZonedDateTime).
  • Constructor Details

    • DayAndHourExpiration

      public DayAndHourExpiration(ZoneId zoneId)
      The current interval is determined by the current time rounded to the given rollIntervalMillis, and the current value will be expired when the interval changes. The value during the initial interval and after an initialize call will not be rounded.
  • Method Details