Interface CacheableAvatarSupplier

    • Field Detail

      • TIMESTAMP_UNKNOWN

        static final int TIMESTAMP_UNKNOWN
        Marker value to be returned by getTimestamp() for avatars whose modification timestamp cannot be determined by the system.
        See Also:
        Constant Field Values
    • Method Detail

      • getTimestamp

        long getTimestamp()
        The timestamp at which the avatar was last modified, in milliseconds.

        To account for differences in avatar repository implementations:

        • If timestamp information is not available, implementations shall return TIMESTAMP_UNKNOWN. Avatars without timestamps should not be cached, as it may not be possible to reliably detect updates.
        • If the avatar cannot be updated, implementations shall return TIMESTAMP_ETERNAL. Such avatars may be cached more aggressively, as they cannot change.
        Returns:
        the avatar's modification timestamp in milliseconds, or TIMESTAMP_UNKNOWN if no modification date is available, or TIMESTAMP_ETERNAL if the avatar is unmodifiable