boolean Lock(String key, long timeout, boolean localOnly)
boolean Lock(String key, long timeout, boolean localOnly)
Name | Type | Description |
---|---|---|
key | String | A key that uniquely identifies a lock. |
timeout | long | Specify in milliseconds the time to wait for the lock. |
localOnly | boolean | true if the lock is local to the local session, false if the lock is cluster wide |
Type | Description |
---|---|
boolean |