java.lang.Object
com.atlassian.confluence.event.events.content.page.synchrony.SynchronyLockEvent

@Internal public class SynchronyLockEvent extends Object
Since:
7.0.0
  • Method Details

    • lockEntities

      public static SynchronyLockEvent lockEntities(Collection<Long> contentIds, Long timeout)
      Creates event for locking some particular hubs
      Parameters:
      contentIds - list of content ids to be locked
      timeout - lock timeout
    • lockEverything

      public static SynchronyLockEvent lockEverything(Long timeout)
      Creates event for global ("all-hubs") lock
      Parameters:
      timeout - lock timeout
    • getContentIds

      public Collection<Long> getContentIds()
    • getTimeout

      public Long getTimeout()
    • isGlobal

      public boolean isGlobal()
      Returns:
      true if all hubs should be locked, false otherwise