public class DefaultHeartbeatManager extends Object implements HeartbeatManager
| Constructor and Description | 
|---|
DefaultHeartbeatManager(com.atlassian.vcache.VCacheFactory cacheFactory,
                       ConfluenceUserResolver userResolver)  | 
DefaultHeartbeatManager(com.atlassian.vcache.VCacheFactory cacheFactory,
                       UserAccessor userAccessor)
Deprecated. 
 
since 7.17 
 | 
| Modifier and Type | Method and Description | 
|---|---|
long | 
getHeartbeatInterval()
Fetches the time at which activities will expire 
 | 
List<com.atlassian.user.User> | 
getUsersForActivity(String activityKey)
Fetches a list of users who are participating in a specified activity 
 | 
void | 
startActivity(String activityKey,
             String username)
Adds a username as an active participant to the specified activity 
 | 
void | 
startActivity(String activityKey,
             com.atlassian.user.User user)
Adds a username as an active participant to the specified activity 
 | 
void | 
stopActivity(String activityKey,
            String username)
Remove a username from the active participants from the specified activity 
 | 
void | 
stopActivity(String activityKey,
            com.atlassian.user.User user)
Remove a user from the active participants from the specified activity 
 | 
public DefaultHeartbeatManager(com.atlassian.vcache.VCacheFactory cacheFactory,
                               ConfluenceUserResolver userResolver)
@Deprecated public DefaultHeartbeatManager(com.atlassian.vcache.VCacheFactory cacheFactory, UserAccessor userAccessor)
public long getHeartbeatInterval()
HeartbeatManagergetHeartbeatInterval in interface HeartbeatManagerpublic List<com.atlassian.user.User> getUsersForActivity(String activityKey)
HeartbeatManagergetUsersForActivity in interface HeartbeatManageractivityKey - The key used to identify the activitypublic void startActivity(String activityKey, String username)
HeartbeatManagerstartActivity in interface HeartbeatManageractivityKey - The key used to identify the activityusername - The username of the user who is participating in the activitypublic void startActivity(String activityKey, com.atlassian.user.User user)
HeartbeatManagerstartActivity in interface HeartbeatManageractivityKey - The key used to identify the activityuser - The user who is participating in the activitypublic void stopActivity(String activityKey, String username)
HeartbeatManagerstopActivity in interface HeartbeatManageractivityKey - The key used to identify the activityusername - The username of the user who is participating in the activitypublic void stopActivity(String activityKey, com.atlassian.user.User user)
HeartbeatManagerstopActivity in interface HeartbeatManageractivityKey - The key used to identify the activityuser - The user who is participating in the activityCopyright © 2003–2022 Atlassian. All rights reserved.