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.

- - ### Field Summary

    - ### Fields inherited from class org.qi4j.api.concern.ConcernOf

      `next`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `ConcurrentModificationCheckConcern()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `EntityStoreUnitOfWork` | `newUnitOfWork(Usecase usecase, ModuleSpi module, long currentTime)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

    - ### Methods inherited from interface org.qi4j.spi.entitystore.EntityStore

      `entityStates`

- - ### Constructor Detail

    - #### ConcurrentModificationCheckConcern

          public ConcurrentModificationCheckConcern()

  - ### Method Detail

    - #### newUnitOfWork

          public EntityStoreUnitOfWork newUnitOfWork(Usecase usecase,
                                            ModuleSpi module,
                                            long currentTime)

      Specified by:
        `newUnitOfWork` in interface `EntityStore`