org.qi4j.spi.entitystore
Class ConcurrentModificationCheckConcern
java.lang.Object
org.qi4j.api.concern.ConcernOf<EntityStore>
org.qi4j.spi.entitystore.ConcurrentModificationCheckConcern
- All Implemented Interfaces:
- EntityStore
public abstract class ConcurrentModificationCheckConcern
- extends ConcernOf<EntityStore>
- implements EntityStore
Concern that helps EntityStores do concurrent modification checks.
It caches the versions of state that it loads, and forgets them when
the state is committed. For normal operation this means that it does
not have to go down to the underlying store to get the current version.
Whenever there is a concurrent modification the store will most likely
have to check with the underlying store what the current version is.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConcurrentModificationCheckConcern
public ConcurrentModificationCheckConcern()
newUnitOfWork
public EntityStoreUnitOfWork newUnitOfWork(Usecase usecase,
ModuleSPI module)
- Specified by:
newUnitOfWork
in interface EntityStore