Свойство | Type | Description | |
---|---|---|---|
LOCK_POLL_INTERVAL | long |
Méthode | Description | |
---|---|---|
Dispose ( ) : void | ||
Obtain ( ) : bool |
Attempts to obtain exclusive access and immediately return upon success or failure. Use #close to release the lock.
|
|
Obtain ( long lockWaitTimeout ) : bool |
Attempts to obtain an exclusive lock within amount of time given. Polls once per #LOCK_POLL_INTERVAL (currently 1000) milliseconds until lockWaitTimeout is passed.
|
|
Release ( ) : void |
Releases exclusive access.
|
public Obtain ( long lockWaitTimeout ) : bool | ||
lockWaitTimeout | long | length of time to wait in /// milliseconds or {@link /// #LOCK_OBTAIN_WAIT_FOREVER} to retry forever |
Résultat | bool |