Class DefaultSynchronyLockManager
- java.lang.Object
-
- com.atlassian.confluence.pages.collab.impl.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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.atlassian.confluence.pages.collab.SynchronyLockManager
SynchronyLockManager.SynchronyContentLock
-
-
Constructor Summary
Constructors Constructor Description DefaultSynchronyLockManager(com.atlassian.event.api.EventPublisher eventPublisher, SynchronyConfigurationReader synchronyConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.atlassian.confluence.pages.collab.impl.DefaultSynchronyContentLock
lockAllContent(long timeout)
Lock all hubs.com.atlassian.confluence.pages.collab.impl.DefaultSynchronyContentLock
lockContent(Collection<Long> contentIds, Long timeout)
Tells synchrony to lock these pages
-
-
-
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 interfaceSynchronyLockManager<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 interfaceSynchronyLockManager<com.atlassian.confluence.pages.collab.impl.DefaultSynchronyContentLock>
- Parameters:
timeout
- lock timeout
-
-