acquireBatchSegment(long, int, Long) method

Acquire the next unlocked batch segment for a given coupon type and locks it.

Syntax

CouponBatchSegment acquireBatchSegment ( long couponTypeId , int lockSeconds , Long updator )

Parameters

Usage

The manager is responsible to renew the lock before the lock expires or release an unused segment