public class CloudLockServiceWaterImpl extends Object implements org.noear.solon.cloud.service.CloudLockService
| Constructor and Description |
|---|
CloudLockServiceWaterImpl() |
| Modifier and Type | Method and Description |
|---|---|
String |
getHolder(String group,
String key) |
boolean |
isLocked(String group,
String key) |
boolean |
tryLock(String group,
String key,
int seconds,
String holder) |
void |
unLock(String group,
String key,
String holder) |
public boolean tryLock(String group, String key, int seconds, String holder)
tryLock in interface org.noear.solon.cloud.service.CloudLockServicepublic void unLock(String group, String key, String holder)
unLock in interface org.noear.solon.cloud.service.CloudLockServicepublic boolean isLocked(String group, String key)
isLocked in interface org.noear.solon.cloud.service.CloudLockServiceCopyright © 2025. All rights reserved.