Package com.atlassian.confluence.core
Interface HeartbeatManager
- All Known Implementing Classes:
- SharedCacheHeartbeatManager
public interface HeartbeatManager
- 
Nested Class SummaryNested Classes
- 
Method SummaryModifier and TypeMethodDescriptiondefault intlongFetches the time at which activities will expireSet<com.atlassian.sal.api.user.UserKey> Fetches a list of users who are participating in a specified activityList<com.atlassian.user.User> getUsersForActivity(String activity) Deprecated, for removal: This API element is subject to removal in a future version.default voidstartActivity(HeartbeatManager.ActivityKey activity, ConfluenceUser user) Adds a username as an active participant to the specified activityvoidstartActivity(String activity, com.atlassian.user.User user) Deprecated, for removal: This API element is subject to removal in a future version.since 9.5 usestartActivity(ActivityKey, ConfluenceUser)voidstartActivity(String activityKey, String username) Deprecated, for removal: This API element is subject to removal in a future version.since 9.5 usestartActivity(ActivityKey, ConfluenceUser)default voidstopActivity(HeartbeatManager.ActivityKey activity, ConfluenceUser user) Remove a user from the active participants from the specified activityvoidstopActivity(String activity, com.atlassian.user.User user) Deprecated, for removal: This API element is subject to removal in a future version.since 9.5 usestopActivity(ActivityKey, ConfluenceUser)voidstopActivity(String activityKey, String username) Deprecated, for removal: This API element is subject to removal in a future version.since 9.5 usestopActivity(ActivityKey, ConfluenceUser)
- 
Method Details- 
getHeartbeatIntervallong getHeartbeatInterval()Fetches the time at which activities will expire- Returns:
- The activity timeout in milliseconds
 
- 
getUsersForActivity@Deprecated(forRemoval=true, since="9.5") List<com.atlassian.user.User> getUsersForActivity(String activity) Deprecated, for removal: This API element is subject to removal in a future version.since 9.5 usegetUserKeysForActivity(ActivityKey)Fetches a list of users who are participating in a specified activity- Parameters:
- activity- The key used to identify the activity
- Returns:
- A list of users who are actively engaging in the specified activity
 
- 
getUserKeysForActivitySet<com.atlassian.sal.api.user.UserKey> getUserKeysForActivity(HeartbeatManager.ActivityKey activity) Fetches a list of users who are participating in a specified activity- Parameters:
- activity- The key used to identify the activity
- Returns:
- A list of users who are actively engaging in the specified activity
- Since:
- 9.5
 
- 
countUsersForActivity- Since:
- 9.5
 
- 
startActivityAdds a username as an active participant to the specified activity- Parameters:
- activity- The key used to identify the activity
- user- The user who is participating in the activity
- Since:
- 9.5
 
- 
startActivityDeprecated, for removal: This API element is subject to removal in a future version.since 9.5 usestartActivity(ActivityKey, ConfluenceUser)Adds a username as an active participant to the specified activity- Parameters:
- activityKey- The key used to identify the activity
- username- The username of the user who is participating in the activity
 
- 
startActivity@Deprecated(since="9.5", forRemoval=true) void startActivity(String activity, com.atlassian.user.User user) Deprecated, for removal: This API element is subject to removal in a future version.since 9.5 usestartActivity(ActivityKey, ConfluenceUser)Adds a username as an active participant to the specified activity- Parameters:
- activity- The key used to identify the activity
- user- The user who is participating in the activity
 
- 
stopActivityRemove a user from the active participants from the specified activity- Parameters:
- activity- The key used to identify the activity
- user- The user who is participating in the activity
- Since:
- 9.5
 
- 
stopActivity@Deprecated(since="9.5", forRemoval=true) void stopActivity(String activity, com.atlassian.user.User user) Deprecated, for removal: This API element is subject to removal in a future version.since 9.5 usestopActivity(ActivityKey, ConfluenceUser)Remove a user from the active participants from the specified activity- Parameters:
- activity- The key used to identify the activity
- user- The user who is participating in the activity
 
- 
stopActivityDeprecated, for removal: This API element is subject to removal in a future version.since 9.5 usestopActivity(ActivityKey, ConfluenceUser)Remove a username from the active participants from the specified activity- Parameters:
- activityKey- The key used to identify the activity
- username- The username of the user who is participating in the activity
 
 
- 
getUserKeysForActivity(ActivityKey)