Class LockStatus
java.lang.Object
com.broadleafcommerce.orderoperation.domain.subscription.LockStatus
Informative DTO about the subscription lock status.
- Since:
- Order Operation Service 2.2.0, Release Train 2.3.0
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic LockStatus.LockStatusBuilderbuilder()protected booleanbooleanAdditional information about the lockThe time the lock was createdThe time the lock will expireThe ID of the lockintThe quantity of reservations remaining for the lockThe tokens associated with each of the optional child locks.getState()The current state of the lockThe subscription ID that the lock is associated withinthashCode()booleanWhether the lock is a child lockvoidsetAdditionalAttributes(Map<String, String> additionalAttributes) Additional information about the lockvoidsetChildLock(boolean isChildLock) Whether the lock is a child lockvoidsetCreated(Instant created) The time the lock was createdvoidsetExpires(Instant expires) The time the lock will expirevoidThe ID of the lockvoidsetRemainingReservations(int remainingReservations) The quantity of reservations remaining for the lockvoidsetReservationTokens(Stack<String> reservationTokens) The tokens associated with each of the optional child locks.voidThe current state of the lockvoidsetSubscriptionId(String subscriptionId) The subscription ID that the lock is associated withtoString()
-
Method Details
-
builder
-
getState
The current state of the lock -
getSubscriptionId
The subscription ID that the lock is associated with -
isChildLock
public boolean isChildLock()Whether the lock is a child lock -
getCreated
The time the lock was created -
getExpires
The time the lock will expire -
getLockId
The ID of the lock -
getReservationTokens
The tokens associated with each of the optional child locks. Used when releasing child locks. -
getRemainingReservations
public int getRemainingReservations()The quantity of reservations remaining for the lock -
getAdditionalAttributes
Additional information about the lock -
setState
The current state of the lock -
setSubscriptionId
The subscription ID that the lock is associated with -
setChildLock
public void setChildLock(boolean isChildLock) Whether the lock is a child lock -
setCreated
The time the lock was created -
setExpires
The time the lock will expire -
setLockId
The ID of the lock -
setReservationTokens
The tokens associated with each of the optional child locks. Used when releasing child locks. -
setRemainingReservations
public void setRemainingReservations(int remainingReservations) The quantity of reservations remaining for the lock -
setAdditionalAttributes
Additional information about the lock -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-