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 Details

    • CollaborativeEditingModeDuration

      @Autowired public CollaborativeEditingModeDuration(com.atlassian.bandana.BandanaManager bandanaManager)
  • Method Details

    • 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.