public interface CacheableAvatarSupplier extends AvatarSupplier
AvatarSupplier
with timestamp information that can be used to control caching, or to simply
display a modification date indicating when the avatar was last updated.Modifier and Type | Field and Description |
---|---|
static int |
TIMESTAMP_ETERNAL
Marker value to be returned by
getTimestamp() for avatars which cannot be modified. |
static int |
TIMESTAMP_UNKNOWN
Marker value to be returned by
getTimestamp() for avatars whose modification timestamp cannot be
determined by the system. |
Modifier and Type | Method and Description |
---|---|
long |
getTimestamp()
The timestamp at which the avatar was last modified, in milliseconds.
|
getContentType, open
static final int TIMESTAMP_ETERNAL
getTimestamp()
for avatars which cannot be modified.static final int TIMESTAMP_UNKNOWN
getTimestamp()
for avatars whose modification timestamp cannot be
determined by the system.long getTimestamp()
To account for differences in avatar repository implementations:
TIMESTAMP_UNKNOWN
.
Avatars without timestamps should not be cached, as it may not be possible to reliably detect updates.TIMESTAMP_ETERNAL
. Such
avatars may be cached more aggressively, as they cannot change.TIMESTAMP_UNKNOWN
if no
modification date is available, or TIMESTAMP_ETERNAL
if the avatar is unmodifiableCopyright © 2022 Atlassian. All rights reserved.