Class SynchronyLockEvent


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

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

        public Long getTimeout()
      • isGlobal

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