@Internal public class SynchronyLockEvent extends Object
Modifier and Type | Method and Description |
---|---|
Collection<Long> |
getContentIds() |
Long |
getTimeout() |
boolean |
isGlobal() |
static SynchronyLockEvent |
lockEntities(Collection<Long> contentIds,
Long timeout)
Creates event for locking some particular hubs
|
static SynchronyLockEvent |
lockEverything(Long timeout)
Creates event for global ("all-hubs") lock
|
public static SynchronyLockEvent lockEntities(Collection<Long> contentIds, Long timeout)
contentIds
- list of content ids to be lockedtimeout
- lock timeoutpublic static SynchronyLockEvent lockEverything(Long timeout)
timeout
- lock timeoutpublic Collection<Long> getContentIds()
public Long getTimeout()
public boolean isGlobal()
true
if all hubs should be locked, false
otherwiseCopyright © 2003–2020 Atlassian. All rights reserved.