Package com.atlassian.confluence.core
Class DefaultHeartbeatManager
- java.lang.Object
-
- com.atlassian.confluence.core.DefaultHeartbeatManager
-
- All Implemented Interfaces:
HeartbeatManager
@Deprecated public class DefaultHeartbeatManager extends Object implements HeartbeatManager
Deprecated.since 8.0 UseDefaultHeartbeatManager
-
-
Constructor Summary
Constructors Constructor Description DefaultHeartbeatManager(com.atlassian.vcache.VCacheFactory cacheFactory, ConfluenceUserResolver userResolver)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description longgetHeartbeatInterval()Deprecated.Fetches the time at which activities will expireList<com.atlassian.user.User>getUsersForActivity(String activityKey)Deprecated.Fetches a list of users who are participating in a specified activityvoidstartActivity(String activityKey, com.atlassian.user.User user)Deprecated.Adds a username as an active participant to the specified activityvoidstartActivity(String activityKey, String username)Deprecated.Adds a username as an active participant to the specified activityvoidstopActivity(String activityKey, com.atlassian.user.User user)Deprecated.Remove a user from the active participants from the specified activityvoidstopActivity(String activityKey, String username)Deprecated.Remove a username from the active participants from the specified activity
-
-
-
Constructor Detail
-
DefaultHeartbeatManager
public DefaultHeartbeatManager(com.atlassian.vcache.VCacheFactory cacheFactory, ConfluenceUserResolver userResolver)Deprecated.- Since:
- 7.17
-
-
Method Detail
-
getHeartbeatInterval
public long getHeartbeatInterval()
Deprecated.Description copied from interface:HeartbeatManagerFetches the time at which activities will expire- Specified by:
getHeartbeatIntervalin interfaceHeartbeatManager- Returns:
- The activity timeout in milliseconds
-
getUsersForActivity
public List<com.atlassian.user.User> getUsersForActivity(String activityKey)
Deprecated.Description copied from interface:HeartbeatManagerFetches a list of users who are participating in a specified activity- Specified by:
getUsersForActivityin interfaceHeartbeatManager- Parameters:
activityKey- The key used to identify the activity- Returns:
- A list of users who are actively engaging in the specified activity
-
startActivity
public void startActivity(String activityKey, String username)
Deprecated.Description copied from interface:HeartbeatManagerAdds a username as an active participant to the specified activity- Specified by:
startActivityin interfaceHeartbeatManager- Parameters:
activityKey- The key used to identify the activityusername- The username of the user who is participating in the activity
-
startActivity
public void startActivity(String activityKey, com.atlassian.user.User user)
Deprecated.Description copied from interface:HeartbeatManagerAdds a username as an active participant to the specified activity- Specified by:
startActivityin interfaceHeartbeatManager- Parameters:
activityKey- The key used to identify the activityuser- The user who is participating in the activity
-
stopActivity
public void stopActivity(String activityKey, String username)
Deprecated.Description copied from interface:HeartbeatManagerRemove a username from the active participants from the specified activity- Specified by:
stopActivityin interfaceHeartbeatManager- Parameters:
activityKey- The key used to identify the activityusername- The username of the user who is participating in the activity
-
stopActivity
public void stopActivity(String activityKey, com.atlassian.user.User user)
Deprecated.Description copied from interface:HeartbeatManagerRemove a user from the active participants from the specified activity- Specified by:
stopActivityin interfaceHeartbeatManager- Parameters:
activityKey- The key used to identify the activityuser- The user who is participating in the activity
-
-