I am creating locks, but names for locks are dynamic. There can be many messages for a given businessCaseId and therefore, many locks will be created.
lock = lockFactory.createLock(vars.businessCaseId)
lock.lock()
try{
//business function implementation for the given businessCaseId
Can I know please what will happen to the lock object after lock.unlock()
? (Yes, the lock is released) Is it removed from the memory/eligible for GC Or stayed on memory Or what? Should I set to null ? lock = null
?
I referred following document, but no much info. https://docs.mulesoft.com/mule-runtime/4.4/distributed-locking