Class UserPrefetchEvent
- java.lang.Object
-
- com.atlassian.confluence.impl.content.render.prefetch.event.UserPrefetchEvent
-
@AsynchronousPreferred public class UserPrefetchEvent extends Object
An event indicating that user prefetch was attempted.- Since:
- 5.10
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
UserPrefetchEvent.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UserPrefetchEvent.Builder
builder(@Nullable ContentEntityObject renderedContentEntity)
int
getConfluenceUserCount()
int
getCrowdUserCount()
long
getElapsedTimeMillis()
@Nullable Long
getRenderedContentId()
int
getUserKeyCount()
int
getUserResourceCount()
-
-
-
Method Detail
-
getRenderedContentId
public @Nullable Long 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)
-
-