Package | Description |
---|---|
com.neurosys.ecom.strategy.service |
Modifier and Type | Method and Description |
---|---|
LockStrategy.Lock |
DefaultLockStrategy.lockUnitsForUser(P product,
U user,
String sessionId,
Number units) |
LockStrategy.Lock |
LockStrategy.lockUnitsForUser(P product,
U user,
String sessionId,
Number units)
During the purchase process allow the ability to lock away certain
units for a User.
|
Modifier and Type | Method and Description |
---|---|
Collection<LockStrategy.Lock> |
DefaultLockStrategy.getLocksForProducts(Collection<P> products) |
Collection<LockStrategy.Lock> |
LockStrategy.getLocksForProducts(Collection<P> products)
Get
LockStrategy.Lock for a Product |
Collection<LockStrategy.Lock> |
DefaultLockStrategy.getLocksForProducts(Collection<P> products,
U user,
String sessionId) |
Collection<LockStrategy.Lock> |
LockStrategy.getLocksForProducts(Collection<P> products,
U user,
String sessionId)
Get
LockStrategy.Lock for a Product |
Collection<LockStrategy.Lock> |
DefaultLockStrategy.getLocksForUser(U user,
String sessionId) |
Collection<LockStrategy.Lock> |
LockStrategy.getLocksForUser(U user,
String sessionId)
Get the
LockStrategy.Lock s for a User |
Modifier and Type | Method and Description |
---|---|
boolean |
DefaultLockStrategy.isLockValid(LockStrategy.Lock lock) |
boolean |
LockStrategy.isLockValid(LockStrategy.Lock lock)
While processing locks, check if a
LockStrategy.Lock is valid or not @ the given instance of time
By default a LockStrategy.Lock more than #minutesForLockExpire minutes is invalid. |
void |
DefaultLockStrategy.unlock(LockStrategy.Lock lock) |
void |
LockStrategy.unlock(LockStrategy.Lock lock)
If a transaction was abandoned, not completed or forced out
then one can unlock it.
|
Modifier and Type | Method and Description |
---|---|
void |
DefaultLockStrategy.unlock(Collection<LockStrategy.Lock> locks) |
void |
LockStrategy.unlock(Collection<LockStrategy.Lock> locks)
If a transaction was abandoned, not completed or forced out
then one can unlock it.
|
Copyright © 2018. All rights reserved.