public interface ResourceLockProvider
Modifier and Type | Method and Description |
---|---|
String |
obtainLock(String contextId,
String conceptKey,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Obtains a resource lock.
|
void |
releaseLock(String token,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Releases a resource lock using a token.
|
String obtainLock(String contextId, String conceptKey, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
contextId
- the context ID of the entity to lockconceptKey
- some key indicating what is being locked or by whocontextInfo
- the context of the requestvoid releaseLock(String token, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
obtainLock(String, String, ContextInfo)
.token
- the token tied to the lock which should be releasedcontextInfo
- the context of the requestCopyright © 2021. All rights reserved.