Class AttachmentPrefetchEvent
- java.lang.Object
-
- com.atlassian.confluence.impl.content.render.prefetch.event.AttachmentPrefetchEvent
-
@AsynchronousPreferred public class AttachmentPrefetchEvent extends Object
An event indicating that attachment prefetch was attempted.- Since:
- 5.10
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AttachmentPrefetchEvent.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AttachmentPrefetchEvent.Builder
builder(@Nullable ContentEntityObject renderedContentEntity)
int
getDiscardedAttachmentCount()
long
getElapsedTimeMillis()
int
getPreFetchedAttachmentCount()
int
getPreFetchedImageDetailsCount()
@Nullable Long
getRenderedContentId()
int
getTotalAttachmentLoadCount()
int
getUnfetchedAttachmentCount()
-
-
-
Method Detail
-
getRenderedContentId
public @Nullable Long getRenderedContentId()
- Returns:
- The ID of the content (e.g. page) being rendered (if any)
-
getPreFetchedAttachmentCount
public int getPreFetchedAttachmentCount()
- Returns:
- The number of attachments referenced in the rendered content that were successfully prefetched
-
getTotalAttachmentLoadCount
public int getTotalAttachmentLoadCount()
- Returns:
- The total number of attachments that were loaded into memory in order to satisfy the prefetch
-
getDiscardedAttachmentCount
public int getDiscardedAttachmentCount()
- Returns:
- The number of loaded attachments that were discarded because they were not necessary to prefetch
-
getUnfetchedAttachmentCount
public int getUnfetchedAttachmentCount()
- Returns:
- The number of attachments referenced in the content that could not be prefetched
-
getPreFetchedImageDetailsCount
public int getPreFetchedImageDetailsCount()
- Returns:
- The number of image details entities that were pre-fetched
-
getElapsedTimeMillis
public long getElapsedTimeMillis()
- Returns:
- The elapsed time taken by the prefetcher, in millis
-
builder
public static AttachmentPrefetchEvent.Builder builder(@Nullable ContentEntityObject renderedContentEntity)
-
-