Class CollaborativeEditingModeDuration
java.lang.Object
com.atlassian.confluence.plugins.synchrony.service.CollaborativeEditingModeDuration
@Component("collaborativeEditingModeDuration")
public class CollaborativeEditingModeDuration
extends Object
Provides information about the time since the last Collaborative Editing mode change, 'off,' 'on,' or
 'limited.'
- Since:
 - 6.0.4
 
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionlongcurrentModeDuration(TimeUnit timeUnit) voidStore the current time in the database. 
- 
Constructor Details
- 
CollaborativeEditingModeDuration
 
 - 
 - 
Method Details
- 
currentModeDuration
- Parameters:
 timeUnit- Time unit to return the duration in- Returns:
 - the duration of the current mode based on the timestamp of the last mode change, in the given unit.
 
 - 
storeModeChangeTime
public void storeModeChangeTime()Store the current time in the database. Should be called when the mode is changed. 
 -