obtainLock
Return a new obtained Lock instance identified by lockName.
Parameters
lockName
name of the lock to be created.
Throws
(optional specific exception) if the lock could not be obtained because it is currently held elsewhere.
IOException
if any i/o error occurs attempting to gain the lock