Method | Description | |
---|---|---|
Run ( ) : object |
Calls #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 #doBody exits.
|
|
With ( |
Constructs an executor that will grab the named lock.
|
Method | Description | |
---|---|---|
DoBody ( ) : object |
Code to execute with exclusive access.
|
public With ( |
||
@lock | ||
lockWaitTimeout | long | |
return | System |