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 SummaryNested Classes
- 
Method SummaryModifier and TypeMethodDescriptionbuilder(@Nullable ContentEntityObject renderedContentEntity) intlongintint@Nullable Longintint
- 
Method Details- 
getRenderedContentId- Returns:
- The ID of the content (e.g. page) being rendered (if any)
 
- 
getPreFetchedAttachmentCountpublic int getPreFetchedAttachmentCount()- Returns:
- The number of attachments referenced in the rendered content that were successfully prefetched
 
- 
getTotalAttachmentLoadCountpublic int getTotalAttachmentLoadCount()- Returns:
- The total number of attachments that were loaded into memory in order to satisfy the prefetch
 
- 
getDiscardedAttachmentCountpublic int getDiscardedAttachmentCount()- Returns:
- The number of loaded attachments that were discarded because they were not necessary to prefetch
 
- 
getUnfetchedAttachmentCountpublic int getUnfetchedAttachmentCount()- Returns:
- The number of attachments referenced in the content that could not be prefetched
 
- 
getPreFetchedImageDetailsCountpublic int getPreFetchedImageDetailsCount()- Returns:
- The number of image details entities that were pre-fetched
 
- 
getElapsedTimeMillispublic long getElapsedTimeMillis()- Returns:
- The elapsed time taken by the prefetcher, in millis
 
- 
builderpublic static AttachmentPrefetchEvent.Builder builder(@Nullable ContentEntityObject renderedContentEntity) 
 
-