Class AttachmentPrefetchEvent
java.lang.Object
com.atlassian.confluence.impl.content.render.prefetch.event.AttachmentPrefetchEvent
An event indicating that attachment prefetch was attempted.
- Since:
- 5.10
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder
(@Nullable ContentEntityObject renderedContentEntity) int
long
int
int
@Nullable Long
int
int
-
Method Details
-
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)
-