Interface RoundedInstantFactory

All Known Implementing Classes:
DefaultRoundedInstantFactory

public interface RoundedInstantFactory
Factory for Instant creation for use in driving temporal aspects of the software, such as active date filtering in queries.
Author:
Jeff Fischer
  • Method Details

    • roundNow

      RoundedInstant roundNow(@Nullable TemporalIdentifier temporalIdentifier)
      Given a TemporalIdentifier instance, return a rounded version of the current instance in time based on an increment modulus. Also, return the specific instance of current time. The rounded version is useful as a cache key by reducing the jitter.
      Parameters:
      temporalIdentifier - The TemporalIdentifier instance that can generate the target, specific current time.
      Returns:
      The current, specific time and the rounded time.