public class SharedLocatorLookup<E> extends Object implements TransactionalLookupIndexIF<LocatorIF,E>
Modifier and Type | Field and Description |
---|---|
protected StorageAccessIF |
access |
protected QueryCache<LocatorIF,E> |
qcache |
protected IdentityIF |
tmid |
protected Map<LocatorIF,E> |
txnadd |
protected Set<LocatorIF> |
txnrem |
Constructor and Description |
---|
SharedLocatorLookup(StorageAccessIF access,
QueryCache<LocatorIF,E> qcache,
IdentityIF tmid) |
protected StorageAccessIF access
protected QueryCache<LocatorIF,E> qcache
protected IdentityIF tmid
public SharedLocatorLookup(StorageAccessIF access, QueryCache<LocatorIF,E> qcache, IdentityIF tmid)
public E get(LocatorIF key)
get
in interface TransactionalLookupIndexIF<LocatorIF,E>
public E put(LocatorIF key, E value)
put
in interface TransactionalLookupIndexIF<LocatorIF,E>
public E remove(LocatorIF key)
remove
in interface TransactionalLookupIndexIF<LocatorIF,E>
public void removeAll(Collection<LocatorIF> keys)
removeAll
in interface TransactionalLookupIndexIF<LocatorIF,E>
public void commit()
commit
in interface TransactionalLookupIndexIF<LocatorIF,E>
public void abort()
abort
in interface TransactionalLookupIndexIF<LocatorIF,E>