|Constructor and Description|
Constructs an executor that will grab the named lock.
|Modifier and Type||Method and Description|
Code to execute with exclusive access.
public Lock.With(Lock lock, long lockWaitTimeout)
protected abstract Object doBody() throws IOException
public Object run() throws IOException
doBody()while lock is obtained. Blocks if lock cannot be obtained immediately. Retries to obtain lock once per second until it is obtained, or until it has tried ten times. Lock is released when
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.