Class DefaultSynchronyLockManager

  • All Implemented Interfaces:
    SynchronyLockManager<com.atlassian.confluence.pages.collab.impl.DefaultSynchronyContentLock>

    public class DefaultSynchronyLockManager
    extends Object
    implements SynchronyLockManager<com.atlassian.confluence.pages.collab.impl.DefaultSynchronyContentLock>
    This component notifies synchrony to lock entities via network call. The handler of this event lives in confluence-collaborative-editor-plugin project.
    Since:
    7.0.0
    • Constructor Detail

      • DefaultSynchronyLockManager

        public DefaultSynchronyLockManager​(com.atlassian.event.api.EventPublisher eventPublisher,
                                           SynchronyConfigurationReader synchronyConfig)
    • Method Detail

      • lockContent

        public com.atlassian.confluence.pages.collab.impl.DefaultSynchronyContentLock lockContent​(Collection<Long> contentIds,
                                                                                                  Long timeout)
        Description copied from interface: SynchronyLockManager
        Tells synchrony to lock these pages
        Specified by:
        lockContent in interface SynchronyLockManager<com.atlassian.confluence.pages.collab.impl.DefaultSynchronyContentLock>
      • lockAllContent

        public com.atlassian.confluence.pages.collab.impl.DefaultSynchronyContentLock lockAllContent​(long timeout)
        Description copied from interface: SynchronyLockManager
        Lock all hubs. Caller should verify if Synchrony is running.
        Specified by:
        lockAllContent in interface SynchronyLockManager<com.atlassian.confluence.pages.collab.impl.DefaultSynchronyContentLock>
        Parameters:
        timeout - lock timeout