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 Constructor Description CollaborativeEditingModeDuration(com.atlassian.bandana.BandanaManager bandanaManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
currentModeDuration(TimeUnit timeUnit)
void
storeModeChangeTime()
Store the current time in the database.
-
-
-
Method Detail
-
currentModeDuration
public long currentModeDuration(TimeUnit timeUnit)
- 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.
-
-