프로퍼티 | 타입 | 설명 | |
---|---|---|---|
LOCK_POLL_INTERVAL | long |
메소드 | 설명 | |
---|---|---|
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 |
리턴 | bool |