What the difference between JobLockService.getLock() & JobLockService.getTransactionLock() ? from practical perspective and theoretical perspective ?
Thanks
Mohammed Amr
Senior System Developer
Digital Series Co,
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Have a look at the two methods signatures:
Returns a
String, which is the newly createdLockToken. You must use the token in following calls torefreshLockorreleaseLockin order to manually manage the lock life span.voidmethod, only asks for aQName. The same thread, or other threads, can call this method to try to acquire the lock. Following calls togetTransactionalLockwill automatically try to refresh the lock in case it’s available/expired, without the need to pass the token around.