Acquire the next unlocked batch segment for a given coupon type and locks it.
Syntax
CouponBatchSegment
acquireBatchSegment
(
long
couponTypeId
,
int
lockSeconds
,
Long
updator
)
Parameters
-
couponTypeId –
the requested coupon type
-
lockSeconds –
initial lock duration.
-
updator –
Usage
The manager is responsible to renew the lock before the lock expires or release an unused segment