Class SynchronyLockEvent
- java.lang.Object
-
- com.atlassian.confluence.event.events.content.page.synchrony.SynchronyLockEvent
-
@Internal public class SynchronyLockEvent extends Object
- Since:
- 7.0.0
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<Long>
getContentIds()
Long
getTimeout()
boolean
isGlobal()
static SynchronyLockEvent
lockEntities(Collection<Long> contentIds, Long timeout)
Creates event for locking some particular hubsstatic SynchronyLockEvent
lockEverything(Long timeout)
Creates event for global ("all-hubs") lock
-
-
-
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 lockedtimeout
- 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
-
-