Class 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 Detail

      • CollaborativeEditingModeDuration

        @Autowired
        public CollaborativeEditingModeDuration​(com.atlassian.bandana.BandanaManager bandanaManager)
    • 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.