Class UserPrefetchEvent
java.lang.Object
com.atlassian.confluence.impl.content.render.prefetch.event.UserPrefetchEvent
An event indicating that user prefetch was attempted.
- Since:
- 5.10
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic UserPrefetchEvent.Builder
builder
(@Nullable ContentEntityObject renderedContentEntity) int
int
long
@Nullable Long
int
int
-
Method Details
-
getRenderedContentId
- Returns:
- The ID of the content (e.g. page) being rendered (if any)
-
getUserResourceCount
public int getUserResourceCount()- Returns:
- the number of user resources that we were asked to prefetch
-
getUserKeyCount
public int getUserKeyCount()- Returns:
- the number of userkeys to be prefetched
-
getConfluenceUserCount
public int getConfluenceUserCount()- Returns:
- the number of ConfluenceUser objects that were prefetched
-
getCrowdUserCount
public int getCrowdUserCount()- Returns:
- the number of Crowd user objects that were prefetched
-
getElapsedTimeMillis
public long getElapsedTimeMillis()- Returns:
- The elapsed time taken by the prefetcher, in millis
-
builder
public static UserPrefetchEvent.Builder builder(@Nullable ContentEntityObject renderedContentEntity)
-