@Service(value="blEventLockUtil") public class EventLockUtil extends Object
Modifier and Type | Field and Description |
---|---|
protected org.springframework.transaction.PlatformTransactionManager |
lockTransactionManager |
protected org.broadleafcommerce.common.util.StreamingTransactionCapableUtil |
lockTransUtil |
protected DatabaseSystemEventDao |
systemEventDao |
Constructor and Description |
---|
EventLockUtil() |
Modifier and Type | Method and Description |
---|---|
static String |
buildGlobalEventLockKey(SystemEvent systemEvent,
Long nodeId) |
static String |
buildGlobalEventRemovalKey(SystemEvent systemEvent) |
void |
init() |
void |
postOperation() |
void |
preOperation() |
protected SystemEvent |
refreshSystemEvent(SystemEvent event) |
void |
runLockedOperation(SystemEvent event,
Long nodeId,
LockedOperation operation) |
protected void |
unlockSerialEvent() |
protected DatabaseSystemEventDao systemEventDao
protected org.broadleafcommerce.common.util.StreamingTransactionCapableUtil lockTransUtil
protected org.springframework.transaction.PlatformTransactionManager lockTransactionManager
public static String buildGlobalEventLockKey(SystemEvent systemEvent, Long nodeId)
public static String buildGlobalEventRemovalKey(SystemEvent systemEvent)
@PostConstruct public void init()
public void runLockedOperation(SystemEvent event, Long nodeId, LockedOperation operation)
protected SystemEvent refreshSystemEvent(SystemEvent event)
protected void unlockSerialEvent()
public void preOperation()
public void postOperation()
Copyright © 2019. All rights reserved.