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 classReadThroughAttachmentDownloadPathCache.AttachmentDownloadPathCacheKey
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ReadThroughAttachmentDownloadPathCachecreate(com.atlassian.cache.CacheFactory cacheFactory)@NonNull Optional<String>getAttachmentDownloadPath(ReadThroughAttachmentDownloadPathCache.AttachmentDownloadPathCacheKey key, Supplier<String> pathSupplier)voidremove(ReadThroughAttachmentDownloadPathCache.AttachmentDownloadPathCacheKey key)ReadThroughAttachmentDownloadPathCache.AttachmentDownloadPathCacheKeytoKey(ContentEntityObject content, String attachmentFileName)ReadThroughAttachmentDownloadPathCache.AttachmentDownloadPathCacheKeytoKey(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)
-
-