public class CartOpsMessageLockService extends Object implements com.broadleafcommerce.common.messaging.service.MessageLockService
Modifier and Type | Field and Description |
---|---|
static String |
MESSAGE_IDEMPOTENCY_KEY |
Constructor and Description |
---|
CartOpsMessageLockService(ResourceLockProvider resourceLockProvider) |
Modifier and Type | Method and Description |
---|---|
String |
obtainLock(@NonNull org.springframework.messaging.Message<?> message,
@NonNull String listenerName) |
void |
purgeLocks(Duration messageLockTtl) |
void |
releaseLock(String lockToken) |
public static final String MESSAGE_IDEMPOTENCY_KEY
public CartOpsMessageLockService(ResourceLockProvider resourceLockProvider)
public String obtainLock(@NonNull @NonNull org.springframework.messaging.Message<?> message, @NonNull @NonNull String listenerName)
obtainLock
in interface com.broadleafcommerce.common.messaging.service.MessageLockService
public void releaseLock(@Nullable String lockToken)
releaseLock
in interface com.broadleafcommerce.common.messaging.service.MessageLockService
public void purgeLocks(Duration messageLockTtl)
purgeLocks
in interface com.broadleafcommerce.common.messaging.service.MessageLockService
Copyright © 2021. All rights reserved.