public class CollectionNonStrictReadWriteAccess extends AbstractCollectionDataAccess
Standard support for CollectionDataAccess
using the AccessType.NONSTRICT_READ_WRITE access type.
| Constructor and Description |
|---|
CollectionNonStrictReadWriteAccess(DomainDataRegion region,
CacheKeysFactory keysFactory,
DomainDataStorageAccess storageAccess,
CollectionDataCachingConfig config) |
| Modifier and Type | Method and Description |
|---|---|
AccessType |
getAccessType()
The type of access implemented
|
void |
unlockItem(SharedSessionContractImplementor session,
Object key,
SoftLock lock)
Called when we have finished the attempted update/delete (which may or
may not have been successful), after transaction completion.
|
generateCacheKey, getCacheKeyId, lockItem, lockRegion, unlockRegionclearCache, contains, destroy, evict, evictAll, get, getRegion, getStorageAccess, putFromLoad, putFromLoad, remove, removeAllclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcontains, evict, evictAll, get, getRegion, putFromLoad, putFromLoad, remove, removeAllpublic CollectionNonStrictReadWriteAccess(DomainDataRegion region, CacheKeysFactory keysFactory, DomainDataStorageAccess storageAccess, CollectionDataCachingConfig config)
public AccessType getAccessType()
CachedDomainDataAccessThe type of access implemented
public void unlockItem(SharedSessionContractImplementor session, Object key, SoftLock lock)
CachedDomainDataAccessCalled when we have finished the attempted update/delete (which may or may not have been successful), after transaction completion. This method is used by "asynchronous" concurrency strategies.
unlockItem in interface CachedDomainDataAccessunlockItem in class AbstractCollectionDataAccesssession - Current session.key - The item keylock - The lock previously obtained from CachedDomainDataAccess.lockItem(org.hibernate.engine.spi.SharedSessionContractImplementor, java.lang.Object, java.lang.Object)Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.