Interface TrackedUse

    • Method Detail

      • getLastUsed

        @Deprecated
        long getLastUsed()
        Deprecated.
        Use getLastUsedInstant() which offers the best precision.
        Gets the last time this object was used in milliseconds.
        Returns:
        the last time this object was used in milliseconds.
      • getLastUsedInstant

        default java.time.Instant getLastUsedInstant()
        Gets the last Instant this object was used.

        Starting with Java 9, the JRE SystemClock precision is increased usually down to microseconds, or tenth of microseconds, depending on the OS, Hardware, and JVM implementation.

        Returns:
        the last Instant this object was used.
        Since:
        2.11.0