public class NLockStoreMemory extends Object implements NLockStore
| Constructor and Description |
|---|
NLockStoreMemory() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
delete(String id) |
NLockModel |
load(String id) |
boolean |
release(String id,
String owner) |
boolean |
renew(String id,
String owner,
NDuration leaseDuration) |
boolean |
tryAcquire(String id,
String owner,
NDuration leaseDuration) |
public NLockModel load(String id)
load in interface NLockStorepublic boolean tryAcquire(String id, String owner, NDuration leaseDuration)
tryAcquire in interface NLockStorepublic boolean renew(String id, String owner, NDuration leaseDuration)
renew in interface NLockStorepublic boolean release(String id, String owner)
release in interface NLockStorepublic boolean delete(String id)
delete in interface NLockStoreCopyright © 2026 vpc open source initiative. All rights reserved.