public abstract class LockRepository extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,Object> |
synchronizationObjects |
| Constructor and Description |
|---|
LockRepository() |
| Modifier and Type | Method and Description |
|---|---|
abstract Lock |
createLock(String lockName) |
protected Object |
getSynchronizationObject(String lockName) |
abstract void |
leaderElection(String lockName,
LeaderListener listener) |
<T> T |
lock(String lockName,
Callable<T> callable) |
void |
lock(String lockName,
Runnable runnable) |
public abstract void leaderElection(String lockName, LeaderListener listener)
Copyright © 2013–2016 V5 Analytics. All rights reserved.