public class DefaultHeartbeatManager extends Object implements HeartbeatManager
| Modifier and Type | Field and Description |
|---|---|
static long |
TIMEOUT_MS |
| Constructor and Description |
|---|
DefaultHeartbeatManager(com.atlassian.beehive.ClusterLockService clusterLockService,
com.atlassian.vcache.VCacheFactory cacheFactory) |
| Modifier and Type | Method and Description |
|---|---|
long |
getHeartbeatInterval()
Fetches the time at which activities will expire
|
List<com.atlassian.user.User> |
getUsersForActivity(Object activityKey)
Deprecated.
|
List<com.atlassian.user.User> |
getUsersForActivity(String activityKey)
Fetches a list of users who are participating in a specified activity
|
void |
startActivity(Object activityKey,
com.atlassian.user.User user)
Deprecated.
|
void |
startActivity(String activityKey,
com.atlassian.user.User user)
Adds a user as an active participant to the specified activity
|
void |
stopActivity(Object activityKey,
com.atlassian.user.User user)
Deprecated.
|
void |
stopActivity(String activityKey,
com.atlassian.user.User user)
Remove a user from the active participants from the specified activity
|
public static final long TIMEOUT_MS
public DefaultHeartbeatManager(com.atlassian.beehive.ClusterLockService clusterLockService,
com.atlassian.vcache.VCacheFactory cacheFactory)
public long getHeartbeatInterval()
HeartbeatManagergetHeartbeatInterval in interface HeartbeatManager@Deprecated public List<com.atlassian.user.User> getUsersForActivity(Object activityKey)
getUsersForActivity in interface HeartbeatManagerpublic List<com.atlassian.user.User> getUsersForActivity(String activityKey)
HeartbeatManagergetUsersForActivity in interface HeartbeatManageractivityKey - The key used to identify the activity@Deprecated public void startActivity(Object activityKey, com.atlassian.user.User user)
startActivity in interface HeartbeatManagerpublic 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 activity@Deprecated public void stopActivity(Object activityKey, com.atlassian.user.User user)
stopActivity in interface HeartbeatManagerpublic 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–2016 Atlassian. All rights reserved.