Return the number of milliseconds the lock will live until it is expired
or -1 if the timeout is not available (or the client is not allowed
to retrieve it).
Return true, if the given token matches the lock token present in this
lock thus indicating that any lock relevant operation should not fail
due to a lock.
Return true, if the given token matches the lock token present in this
lock thus indicating that any lock relevant operation should not fail
due to a lock.
Return the number of milliseconds the lock will live until it is expired
or -1 if the timeout is not available (or the client is not allowed
to retrieve it).
Returns:
number of milliseconds.
setTimeout
voidsetTimeout(long timeout)
Defines the number of milliseconds until the timeout is reached.