S - The LockStatus type.public class LockerState<S> extends Object
LockStatus objects. Thread-safe so long as the method
calls with any given StoreTransaction are serial. Put another way,
thread-safety is only broken by concurrently calling this class's methods
with the same StoreTransaction instance in the arguments to each
concurrent call.AbstractLocker| Constructor and Description |
|---|
LockerState() |
LockerState(ConcurrentMap<StoreTransaction,Map<KeyColumn,S>> locks) |
| Modifier and Type | Method and Description |
|---|---|
Map<KeyColumn,S> |
getLocksForTx(StoreTransaction tx) |
boolean |
has(StoreTransaction tx,
KeyColumn kc) |
void |
release(StoreTransaction tx,
KeyColumn kc) |
void |
take(StoreTransaction tx,
KeyColumn kc,
S ls) |
public LockerState()
public LockerState(ConcurrentMap<StoreTransaction,Map<KeyColumn,S>> locks)
public boolean has(StoreTransaction tx, KeyColumn kc)
public void take(StoreTransaction tx, KeyColumn kc, S ls)
public void release(StoreTransaction tx, KeyColumn kc)
public Map<KeyColumn,S> getLocksForTx(StoreTransaction tx)
Copyright © 2012–2015. All rights reserved.