Meaning of lockDuration in External Task Client?

What is the Meaning of lockDuration in External Task Client?

As per below code it looks like to me that the task will be locked for 20 seconds (assuming default value).
Does that mean the External Task Client needs to finish it within 20 seconds, else it can also be picked by another task client polling to same topic.


  /**
   * @param lockDuration <ul>
   *                       <li> in milliseconds to lock the external tasks
   *                       <li> must be greater than zero
   *                       <li> the default lock duration is 20 seconds (20,000 milliseconds)
   *                       <li> overrides the lock duration configured on bootstrapping the client
   *                     </ul>
   * @return the builder
   */
  TopicSubscriptionBuilder lockDuration(long lockDuration);

Hi @Himanshu_Singh,

exactly

1 Like