public abstract class LockClientTemplate extends Object implements LockClient
| Constructor and Description |
|---|
LockClientTemplate(String applicationName) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Lock |
create(String name) |
void |
executeIfOwned(Runnable runnable) |
void |
executeIfOwned(String lockKey,
Runnable runnable) |
protected abstract Iterable<Lock> |
locks() |
protected abstract Lock |
refresh(String name,
String value) |
protected abstract void |
release(String name,
String value) |
protected Logger logger
public LockClientTemplate(String applicationName)
public void executeIfOwned(Runnable runnable)
executeIfOwned in interface LockClientpublic void executeIfOwned(String lockKey, Runnable runnable)
executeIfOwned in interface LockClientCopyright © 2018. All rights reserved.