Class ReadThroughAttachmentDownloadPathCache
- java.lang.Object
-
- com.atlassian.confluence.impl.pages.attachments.ReadThroughAttachmentDownloadPathCache
-
@ParametersAreNonnullByDefault public class ReadThroughAttachmentDownloadPathCache extends Object
Cache for attachment download paths. Caches null results as well as actual results.- Since:
- 7.5
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ReadThroughAttachmentDownloadPathCache.AttachmentDownloadPathCacheKey
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ReadThroughAttachmentDownloadPathCache
create(com.atlassian.cache.CacheFactory cacheFactory)
@NonNull Optional<String>
getAttachmentDownloadPath(ReadThroughAttachmentDownloadPathCache.AttachmentDownloadPathCacheKey key, Supplier<String> pathSupplier)
void
remove(ReadThroughAttachmentDownloadPathCache.AttachmentDownloadPathCacheKey key)
ReadThroughAttachmentDownloadPathCache.AttachmentDownloadPathCacheKey
toKey(ContentEntityObject content, String attachmentFileName)
ReadThroughAttachmentDownloadPathCache.AttachmentDownloadPathCacheKey
toKey(Attachment attachment)
-
-
-
Method Detail
-
create
public static ReadThroughAttachmentDownloadPathCache create(com.atlassian.cache.CacheFactory cacheFactory)
-
toKey
public ReadThroughAttachmentDownloadPathCache.AttachmentDownloadPathCacheKey toKey(Attachment attachment)
-
toKey
public ReadThroughAttachmentDownloadPathCache.AttachmentDownloadPathCacheKey toKey(ContentEntityObject content, String attachmentFileName)
-
getAttachmentDownloadPath
public @NonNull Optional<String> getAttachmentDownloadPath(ReadThroughAttachmentDownloadPathCache.AttachmentDownloadPathCacheKey key, Supplier<String> pathSupplier)
-
remove
public void remove(ReadThroughAttachmentDownloadPathCache.AttachmentDownloadPathCacheKey key)
-
-