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
  • Method Details

    • 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)